generated from react-boilerplate/react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
52 lines (49 loc) · 1.98 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
image:
file: .gitpod.Dockerfile
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/
tasks:
- command: |
clear
export DOCKER_HOST=tcp://localhost:2375
echo "once the setup is done, try running $(tput setaf 2)docker ps"
echo
- command: |
clear
gp await-port 9000 &&
remote=$(gp url 9000)
echo
echo "Inlets server is running on $(gp url 9000)."
echo "$(tput setaf 7)Connect your local Docker daemon by running"
echo
echo "$(tput setaf 2)inlets client --remote=${remote/https/wss} \\"
echo "$(tput setaf 2) --token $(cat /tmp/inlets-token) \\"
echo "$(tput setaf 2) --upstream=http://127.0.0.1:2375$(tput sgr0)"
echo
echo "on your local machine."
echo
echo "In the example above, $(tput setaf 3)your local Docker daemon must listen on port 2375.$(tput sgr0)"
echo
echo "Locally run the following to expose your Docker socket on 127.0.0.1:2375"
echo "$(tput setaf 3) docker run --name expose-docker --rm -d -v /var/run/docker.sock:/var/run/docker.sock \\"
echo "$(tput setaf 3) -p 127.0.0.1:2375:2375 alpine/socat TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock"
read
openMode: split-right
- command: |
head -c 16 /dev/urandom | shasum | cut -d" " -f1 > /tmp/inlets-token
inlets server --control-port=9000 --port 2375 --token="$(cat /tmp/inlets-token)"
openMode: split-bottom
vscode:
extensions:
- [email protected]:VERVP8BWgmE+aB6pxK1YPA==
- [email protected]:+I7fhWnHHHFPms/pHGQ/LQ==
- [email protected]:lpuKvZoPinhQd8yJlJAj+A==
- [email protected]:yQtCdwoyo890Bn9NOEuEDA==
- [email protected]:QnOrf5fk6KiVaQs4cNEP+w==
- [email protected]:k9RQ8fqmg2WmkP2sL4ccbA==
- [email protected]:gp7txvVDwF7BOoVU8XjTQw==
ports:
- port: 9000
onOpen: ignore
- port: 2375-2376
onOpen: ignore
- port: 3000