Skip to content

Commit f0a52f9

Browse files
committed
Merge branch 'packer-image-install-docker' into 'master'
fix: install docker to AMI explicitly See merge request postgres-ai/database-lab!335
2 parents 188e66f + c8f0b2a commit f0a52f9

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

packer/install-prereqs.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ sudo apt-get update && sudo apt-get install -y \
1414
software-properties-common \
1515
curl \
1616
gnupg2 \
17-
zfsutils-linux
17+
zfsutils-linux \
18+
19+
# Install Docker
20+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
21+
22+
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
23+
sudo apt-get update && sudo apt-get install -y \
24+
docker-ce \
25+
docker-ce-cli \
26+
containerd.io
1827

1928
#sudo docker pull postgresai/dblab-server:$dle_version
2029

packer/template.json.pkr.hcl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ build {
5050

5151
provisioner "file"{
5252
source = "joe.yml"
53-
destination = "/home/ubuntu/.dblab/configs/joe.yml"
54-
}
55-
56-
provisioner "file"{
57-
source = "ci_checker.yml"
58-
destination = "/home/ubuntu/.dblab/configs/ci_checker.yml"
53+
destination = "/home/ubuntu/joe.yml"
5954
}
6055

6156
provisioner "shell" {

0 commit comments

Comments
 (0)