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
IT-division Public
dockerimages
centosfpmcookery
Commits
9f0f838b
Commit
9f0f838b
authored
Sep 11, 2019
by
Torstein Leversund
Browse files
docker image for building packages with fpm cookery
parent
c6f8fcbe
Pipeline
#3712
failed with stages
in 12 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
9f0f838b
~.un~
.gitlab-ci.yml
0 → 100644
View file @
9f0f838b
image
:
docker:stable
stages
:
-
build
-
test
-
release
variables
:
TEST_IMAGE
:
git.app.uib.no:4567/itpublic/dockerimages/centosfpmcookery:$CI_COMMIT_REF_NAME
RELEASE_IMAGE
:
git.app.uib.no:4567/itpublic/dockerimages/centosfpmcookery:latest
before_script
:
-
echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
build
:
stage
:
build
script
:
-
docker build --pull -t $TEST_IMAGE .
-
docker push $TEST_IMAGE
test
:
stage
:
test
script
:
-
docker pull $TEST_IMAGE
release
:
stage
:
release
script
:
-
docker pull $TEST_IMAGE
-
docker tag $TEST_IMAGE $RELEASE_IMAGE
-
docker push $RELEASE_IMAGE
only
:
-
master
Dockerfile
0 → 100644
View file @
9f0f838b
FROM
centos:7
RUN
yum
-y
update
\
&&
curl
-sL
https://rpm.nodesource.com/setup_10.x | bash -
\
&&
yum
-y
install
nodejs
install
epel-release openssl rpm-build rsync which ruby-devel gcc gcc-c++ make
\
&&
yum
-y
install
rubygems rake openssh-clients wget
\
&&
gem
install
-N
fpm-cookery
\
&&
yum
-y
update
Write
Preview
Markdown
is supported
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