mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 17:12:49 -05:00
do marketplace fabric scripts
This commit is contained in:
33
util/DigitalOceanMarketplace/scripts/01-install-docker
Normal file
33
util/DigitalOceanMarketplace/scripts/01-install-docker
Normal file
@ -0,0 +1,33 @@
|
||||
#!/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
|
Reference in New Issue
Block a user