Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HCI-Development
HCI Theme
Commits
720be4b8
Commit
720be4b8
authored
Jan 13, 2020
by
Marvin Thäns
Browse files
dockerize
parent
8c240d9c
Pipeline
#19935
passed with stage
in 12 minutes and 38 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
720be4b8
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
Dockerfile
0 → 100644
View file @
720be4b8
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
scripts/build
0 → 100644
View file @
720be4b8
#!/usr/bin/env bash
bundle
bundle
update
jekyll
build
scripts/development
0 → 100755
View file @
720be4b8
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment