diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4c85e24 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:sid-slim + +COPY ./src /srv/build + +WORKDIR /srv/build + +VOLUME ["/srv/build/repo/incoming"] + +ENTRYPOINT ["./main.sh"] diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..4825919 --- /dev/null +++ b/launch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +docker build -t vscodium . +docker run --rm -v /srv/incoming:/srv/build/repo/incoming vscodium +docker image rm vscodium diff --git a/build.sh b/src/build.sh similarity index 83% rename from build.sh rename to src/build.sh index 19e01f8..4a7bf4e 100755 --- a/build.sh +++ b/src/build.sh @@ -5,11 +5,11 @@ apt-get update apt-get -qq -y --no-install-recommends install curl jq ca-certificates git g++ gcc make clang wget xz-utils python sudo mkdir build_node -cd build_node/ +cd build_node/ || exit wget https://nodejs.org/dist/v12.14.1/node-v12.14.1.tar.xz tar xf node-v12.14.1.tar.xz mv node-v12.14.1 node -cd node +cd node || exit ./configure make -j4 make install @@ -18,10 +18,7 @@ node --version apt-get -y --no-install-recommends install git jq imagemagick curl build-essential pkg-config libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm npm install yarn --global -cd .. +cd .. || exit git clone https://github.com/VSCodium/vscodium.git -cd vscodium/ +cd vscodium/ || exit ./build/build_linux.sh -cd.. - -./deploy.sh vscodium/.build/linux/deb/amd64/deb repo/incoming .ready diff --git a/deploy.sh b/src/deploy.sh similarity index 100% rename from deploy.sh rename to src/deploy.sh diff --git a/src/main.sh b/src/main.sh new file mode 100755 index 0000000..8779014 --- /dev/null +++ b/src/main.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +#set -e + +./build.sh + +./deploy.sh vscodium/.build/linux/deb/amd64/deb repo/incoming .ready