Commit 720be4b8 authored by Marvin Thäns's avatar Marvin Thäns
Browse files

dockerize

parent 8c240d9c
Pipeline #19935 passed with stage
in 12 minutes and 38 seconds
build-container:
tags:
- docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:build 2>&1 | grep -v "Adding "
## only:
## changes:
## - Dockerfile
## - .gitlab-ci.yml
FROM ubuntu:bionic
LABEL maintainer="JP Stauffert"
RUN apt-get update && apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_13.x | bash - && \
apt-get update && apt-get install -y \
nodejs \
imagemagick \
ruby-full build-essential zlib1g-dev \
git-lfs ssh locales && \
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc && \
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc && \
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc && \
gem update --system && \
gem install jekyll bundler jekyll-redirect-from && \
echo 'Node: ' && \
node -v && \
echo 'NPM: ' && \
npm -v && \
echo 'jekyll: ' && \
jekyll -v && \
echo 'gem: ' && \
gem -v && \
echo 'nodejs: ' && \
nodejs -v && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG="en_US.UTF-8" LANGUAGE="en_US" LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL="en_US.UTF-8" && \
dpkg-reconfigure --frontend=noninteractive locales
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
COPY package.json /
RUN npm install --only=dev
COPY . /
\ No newline at end of file
#!/usr/bin/env bash
bundle
bundle update
jekyll build
#!/usr/bin/env bash
bundle
bundle update
jekyll serve --host=0.0.0.0 --port=4200 --trace&
PIDS[0]=$!
trap "kill ${PIDS[*]}" SIGINT
wait
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment