Adds basic container setup with pipeline #1

Merged
OCram85 merged 18 commits from woodpecker into master 2022-11-07 16:01:31 +01:00
3 changed files with 22 additions and 8 deletions
Showing only changes of commit d64bfa04b5 - Show all commits

View File

@ -3,11 +3,12 @@ depends_on:
pipeline:
buildNextGitea:
image: plugins/docker
image: woodpeckerci/plugin-docker-buildx
settings:
#dry_run: true
registry: gitea.ocram85.com
repo: gitea.ocram85.com/codeserver/container
platforms: linux/amd64
dockerfile: Dockerfile
tags: next
username:

View File

@ -14,6 +14,21 @@ RUN \
git config --system credential.helper store && \
echo 'source /usr/share/bash-completion/completions/git' >> /etc/bash.bashrc
ADD finalize-codeserver.sh /usr/bin/
RUN \
chmod +x /usr/bin/finalize-codeserver.sh
echo "**** install dev runtimes ****" && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \
apt-get install --no-install-recommends -y \
nodejs \
golang-go
RUN \
echo "**** clean up ****" && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
#ADD finalize-codeserver.sh /usr/bin/
#RUN \
# chmod +x /usr/bin/finalize-codeserver.sh

View File

@ -1,15 +1,13 @@
#!/bin/bash
echo "**** install dev runtimes ****"
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
apt-get install --no-install-recommends -y \
sudo apt-get install --no-install-recommends -y \
nodejs \
golang-go
echo "**** clean up ****"
apt-get clean
rm -rf \
/config/* \
sudo apt-get clean
sudo rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*