Skip to content

Commit

Permalink
feat: use docker-ce
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored and mrsimonemms committed Jun 22, 2023
1 parent 489bc84 commit 6972e6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"containerEnv": {
"GIT_REPO": "github.com/mrsimonemms/devpod-provider-hetzner",
"DISK_IMAGE": "ubuntu-22.04",
"DISK_IMAGE": "docker-ce",
"DISK_SIZE": "30",
"MACHINE_ID": "some-machine-id",
"MACHINE_FOLDER": "/home/vscode/.ssh",
Expand Down
7 changes: 6 additions & 1 deletion hack/provider/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,21 @@ options:
default: "30"
DISK_IMAGE:
description: The disk image to use.
default: ubuntu-22.04
default: docker-ce
MACHINE_TYPE:
description: The machine type to use.
default: cx31
suggestions:
- cx11
- cpx11
- cx21
- cpx21
- cx31
- cpx31
- cx41
- cpx41
- cx51
- cpx51
INACTIVITY_TIMEOUT:
description: If defined, will automatically stop the VM after the inactivity period.
default: 10m
Expand Down
5 changes: 2 additions & 3 deletions pkg/hetzner/cloud-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ packages:
- ufw
package_reboot_if_required: true
package_update: true
package_upgrade: true
runcmd:
# Secure SSHD
- [ sed, -i, -e, 's/^PermitRootLogin yes/PermitRootLogin no/', '/etc/ssh/sshd_config' ]
Expand All @@ -22,8 +21,8 @@ runcmd:
- ufw allow ssh
- ufw enable
# Install Docker
- curl -fsSL https://get.docker.com | sh
- service docker start
- if docker ; then echo "Docker already installed"; else curl -fsSL https://get.docker.com | sh; fi
- systemctl restart docker
timezone: UTC
users:
- default
Expand Down

0 comments on commit 6972e6c

Please sign in to comment.