sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
git \
vim
Reference on Install Docker Engine on Debian.
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt-get autoremove -yqq --purge \
&& sudo apt-get clean
sudo adduser ro-dou
# pasword: ro-dou123
sudo usermod -aG docker ro-dou
su - ro-dou && \
mkdir /home/ro-dou/airflow-mnt && \
mkdir /home/ro-dou/airflow-mnt/logs && \
mkdir /home/ro-dou/airflow-mnt/pgdata
Reference on Creating a personal access token.
su - ro-dou
Step needed to docker pull ghcr.io
on Github private package.
export GH_PAT=YOUR_TOKEN
export GH_USER=YOUR_GITHUB_USER
echo $GH_PAT | docker login ghcr.io -u $GH_USER --password-stdin
# enables git commands to not prompt for login
git config --global credential.helper store
cd /home/ro-dou && \
git clone https://$GH_USER:$GH_PAT@github.com/<your-user>/ro-dou-jobs.git
Instructions at sh/ro-dou-startup.service.
Instructions at sh/ro-dou-shutdown.service.
/home/ro-dou/ro-dou-jobs/sh/ro-dou-startup.sh