-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 969 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (26 loc) · 969 Bytes
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
---
version: "3.7"
services:
chef-workstation:
image: ubuntu:20.04
stdin_open: true
ports:
- "8000:8000"
- "8080:8080"
- "80:80"
platform: linux/amd64
command: bash -xc "
apt-get update &&
apt-get install -y curl wget git &&
curl -o /tmp/code-server.sh https://raw.githubusercontent.com/coder/code-server/main/install.sh &&
chmod u+x /tmp/code-server.sh &&
bash /tmp/code-server.sh > /dev/null 2>&1 &&
wget https://packages.chef.io/files/stable/chef-workstation/21.10.640/ubuntu/20.04/chef-workstation_21.10.640-1_amd64.deb &&
dpkg -i chef-workstation_21.10.640-1_amd64.deb &&
mkdir -p /root/cookbooks &&
cd /root/cookbooks &&
git config --global user.email 'you@example.com' &&
git config --global user.name 'Your Name' &&
git clone https://github.com/chef-training/custom_web.git &&
code-server --bind-addr 0.0.0.0:8000 --auth none
"