Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
stv-calc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrej Ramašeuski
stv-calc
Commits
ae2acb59
Commit
ae2acb59
authored
5 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Aktualizace buildu
parent
701c3444
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#58
passed
5 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-2
5 additions, 2 deletions
.gitlab-ci.yml
Dockerfile
+1
-12
1 addition, 12 deletions
Dockerfile
cpanfile
+0
-1
0 additions, 1 deletion
cpanfile
with
6 additions
and
15 deletions
.gitlab-ci.yml
+
5
−
2
View file @
ae2acb59
image
:
docker:19.03.1
image
:
docker:19.03.1
variables
:
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
DOCKER_TLS_CERTDIR
:
"
/certs"
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:latest
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:latest
services
:
services
:
-
docker:19.03.1-dind
-
docker:19.03.1-dind
before_script
:
before_script
:
-
docker info
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build
:
build
:
stage
:
build
stage
:
build
script
:
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build -t $IMAGE_TAG .
-
docker build -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
-
docker push $IMAGE_TAG
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
12
View file @
ae2acb59
FROM
alpine:3.10
FROM
docker-registry.pirati.cz/ramaseuski/docker-mojolicious
COPY
cpanfile /
ENV
EV_EXTRA_DEFS -DEV_NO_ATFORK
RUN
apk update
&&
\
apk add perl perl-io-socket-ssl perl-dev perl-json perl-yaml wget curl make
&&
\
curl
-L
https://cpanmin.us | perl - App::cpanminus
&&
\
cpanm
--installdeps
.
-M
https://cpan.metacpan.org
&&
\
apk del perl-dev g++ make wget curl
&&
\
rm
-rf
/root/.cpanm/
*
/usr/local/share/man/
*
/cpanfile
ADD
. /opt/rvvote
ADD
. /opt/rvvote
EXPOSE
3000
EXPOSE
3000
WORKDIR
/opt/rvvote
WORKDIR
/opt/rvvote
CMD
./script/rvvote daemon
CMD
./script/rvvote daemon
This diff is collapsed.
Click to expand it.
cpanfile
deleted
100644 → 0
+
0
−
1
View file @
701c3444
requires "Mojolicious";
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment