mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
34 lines
814 B
Plaintext
34 lines
814 B
Plaintext
|
#!/bin/bash
|
||
|
#
|
||
|
# Scripts in this directory are run during the build process.
|
||
|
# each script will be uploaded to /tmp on your build droplet,
|
||
|
# given execute permissions and run. The cleanup process will
|
||
|
# remove the scripts from your build system after they have run
|
||
|
# if you use the build_image task.
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# Install Docker CE
|
||
|
# ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/
|
||
|
#
|
||
|
|
||
|
apt-get -y update
|
||
|
|
||
|
apt-get -y install \
|
||
|
apt-transport-https \
|
||
|
ca-certificates \
|
||
|
curl \
|
||
|
gnupg-agent \
|
||
|
software-properties-common
|
||
|
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||
|
|
||
|
add-apt-repository \
|
||
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||
|
$(lsb_release -cs) \
|
||
|
stable"
|
||
|
|
||
|
apt-get -y update
|
||
|
|
||
|
apt-get -y install docker-ce docker-ce-cli containerd.io
|