automated terminal push
This commit is contained in:
15
.dockerignore
Normal file
15
.dockerignore
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
*.md
|
||||
|
||||
*.log
|
||||
|
||||
LICENSE
|
||||
|
||||
.dockerignore
|
||||
|
||||
.git*
|
||||
|
||||
.recycle
|
||||
|
||||
.trash
|
||||
|
||||
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
19
compose.bash
Executable file
19
compose.bash
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
##
|
||||
|
||||
reset
|
||||
|
||||
clear
|
||||
|
||||
##
|
||||
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
##
|
||||
|
||||
docker compose down --remove-orphans
|
||||
|
||||
docker compose up -d
|
||||
13
compose.yaml
Normal file
13
compose.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
|
||||
docker-provision-verification:
|
||||
|
||||
container_name: docker-provision-verification
|
||||
|
||||
image: sofwareshinobi/docker-provision-verification
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
|
||||
- "80:80"
|
||||
39
provision.bash
Executable file
39
provision.bash
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
reset
|
||||
|
||||
clear
|
||||
|
||||
##
|
||||
|
||||
echo
|
||||
echo "## "
|
||||
echo "## routine / provision-ubuntu-basic / starting"
|
||||
echo "## "
|
||||
echo
|
||||
|
||||
apt-get update;
|
||||
|
||||
apt -y install ca-certificates curl;
|
||||
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
|
||||
chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
apt update
|
||||
|
||||
apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
docker run hello-world
|
||||
|
||||
echo "finished provision..."
|
||||
Reference in New Issue
Block a user