Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-copasi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COPASI
dune-copasi
Commits
937bc3b1
Commit
937bc3b1
authored
4 years ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Patches
Plain Diff
Reduce deployment image size
parent
e5e744ae
No related branches found
No related tags found
1 merge request
!49
Resolve "Finish installation and usage instruction on the documentation"
Pipeline
#32821
passed
4 years ago
Stage: build
Stage: unit_tests
Stage: system_tests
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+15
-10
15 additions, 10 deletions
.gitlab-ci.yml
doc/docusaurus/docs/install_use.md
+1
-1
1 addition, 1 deletion
doc/docusaurus/docs/install_use.md
docker/dune-copasi.dockerfile
+15
-7
15 additions, 7 deletions
docker/dune-copasi.dockerfile
with
31 additions
and
18 deletions
.gitlab-ci.yml
+
15
−
10
View file @
937bc3b1
...
...
@@ -31,7 +31,8 @@ stages:
TOOLCHAIN
:
gcc-8-17
DUNECI_OS
:
debian
DUNECI_BASE_IMAGE
:
${CI_REGISTRY}/docker/ci/debian:10
DUNE_COPASI_BASE_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_BUILD_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_DEPLOY_IMAGE
:
debian:buster
DEPLOY_LATEST
:
"
true"
.debian_clang
:
&debian_clang
...
...
@@ -39,21 +40,24 @@ stages:
TOOLCHAIN
:
clang-6-17
DUNECI_OS
:
debian
DUNECI_BASE_IMAGE
:
${CI_REGISTRY}/docker/ci/debian:10
DUNE_COPASI_BASE_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_BUILD_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_DEPLOY_IMAGE
:
debian:buster
.ubuntu_gcc
:
&ubuntu_gcc
<<
:
*global_variables
TOOLCHAIN
:
gcc-7-17
DUNECI_OS
:
ubuntu
DUNECI_BASE_IMAGE
:
${CI_REGISTRY}/docker/ci/ubuntu:18.04
DUNE_COPASI_BASE_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_BUILD_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_DEPLOY_IMAGE
:
ubuntu:18.04
.ubuntu_clang
:
&ubuntu_clang
<<
:
*global_variables
TOOLCHAIN
:
clang-6-17
DUNECI_OS
:
ubuntu
DUNECI_BASE_IMAGE
:
${CI_REGISTRY}/docker/ci/ubuntu:18.04
DUNE_COPASI_BASE_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_BUILD_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DUNE_COPASI_DEPLOY_IMAGE
:
ubuntu:18.04
.setup
:
&setup
image
:
${DOCKER_IMAGE}
...
...
@@ -63,8 +67,8 @@ stages:
-
docker build -f docker/dependencies.dockerfile
--build-arg BASE_IMAGE=${DUNECI_BASE_IMAGE}
--build-arg TOOLCHAIN=${TOOLCHAIN}
-t ${DUNE_COPASI_B
ASE
_IMAGE} .
-
docker push ${DUNE_COPASI_B
ASE
_IMAGE}
-t ${DUNE_COPASI_B
UILD
_IMAGE} .
-
docker push ${DUNE_COPASI_B
UILD
_IMAGE}
-
docker logout $CI_REGISTRY/copasi/dune-copasi
rules
:
-
if
:
'
$REBUILD_BASE_IMAGE'
...
...
@@ -74,7 +78,7 @@ stages:
<<
:
*dind_docker_tags
.build
:
&build
image
:
${DUNE_COPASI_B
ASE
_IMAGE}
image
:
${DUNE_COPASI_B
UILD
_IMAGE}
stage
:
build
script
:
-
cd ..
...
...
@@ -86,7 +90,7 @@ stages:
<<
:
*default_tags
.unit_tests
:
&unit_tests
image
:
${DUNE_COPASI_B
ASE
_IMAGE}
image
:
${DUNE_COPASI_B
UILD
_IMAGE}
stage
:
unit_tests
script
:
-
echo 'CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=Debug"' >> /duneci/cmake-flags/dune_copasi.opts
...
...
@@ -100,7 +104,7 @@ stages:
<<
:
*default_tags
.system_tests
:
&system_tests
image
:
${DUNE_COPASI_B
ASE
_IMAGE}
image
:
${DUNE_COPASI_B
UILD
_IMAGE}
stage
:
system_tests
script
:
-
cd ..
...
...
@@ -120,7 +124,8 @@ stages:
-
echo "$CI_REGISTRY_PASSWORD" | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY/copasi/dune-copasi
-
DOCKER_TAG="${DUNECI_OS}-${TOOLCHAIN}-${CI_COMMIT_REF_NAME}"
-
docker build -f docker/dune-copasi.dockerfile
--build-arg BASE_IMAGE=${DUNE_COPASI_BASE_IMAGE}
--build-arg BUILD_IMAGE=${DUNE_COPASI_BUILD_IMAGE}
--build-arg PRODUCTION_IMAGE=${DUNE_COPASI_DEPLOY_IMAGE}
--build-arg BRANCH=${CI_COMMIT_REF_NAME}
-t $CI_REGISTRY/copasi/dune-copasi/dune-copasi:${DOCKER_TAG} .
-
docker push $CI_REGISTRY/copasi/dune-copasi/dune-copasi:${DOCKER_TAG}
...
...
This diff is collapsed.
Click to expand it.
doc/docusaurus/docs/install_use.md
+
1
−
1
View file @
937bc3b1
...
...
@@ -47,7 +47,7 @@ To run the `dune_copasi_md` executable from the container with a configuration
file
`config.ini`
, execute the following command on the terminal:
```
bash
docker run
-v
$PWD
:/dune
ci/dune-
copasi registry.dune-project.org/copasi/dune-copasi/dune-copasi:latest dune_copasi_md config.ini
docker run
-v
$PWD
:/dunecopasi registry.dune-project.org/copasi/dune-copasi/dune-copasi:latest dune_copasi_md config.ini
```
The results of those computations will be written on current
...
...
This diff is collapsed.
Click to expand it.
docker/dune-copasi.dockerfile
+
15
−
7
View file @
937bc3b1
ARG
BASE_IMAGE
FROM
${BASE_IMAGE}
ARG
DUNECI_PARALLEL=2
ARG
BUILD_IMAGE
ARG
PRODUCTION_IMAGE
FROM
${BUILD_IMAGE}
AS
build-env
ARG
BRANCH=master
ARG
DUNECI_PARALLEL=2
RUN
duneci-install-module
-b
${
BRANCH
}
https://gitlab.dune-project.org/copasi/dune-copasi.git
RUN
dunecontrol
--only
=
dune-copasi bexec cmake
--build
.
--
install
RUN
mkdir
/duneci/dune-copasi
&&
rm
-rf
/duneci/modules/
ENV
PATH="${PATH}:/duneci/install/bin"
WORKDIR
/duneci/dune-copasi
VOLUME
["/duneci/dune-copasi"]
FROM
${PRODUCTION_IMAGE}
AS
production-env
LABEL
maintainer="santiago.ospina@iwr.uni-heidelberg.de"
COPY
--from=0 /duneci/install /usr/local
RUN
adduser
--disabled-password
--home
/dunecopasi
--uid
50000 dunecopasi
WORKDIR
/dunecopasi
VOLUME
["/dunecopasi"]
USER
dunecopasi
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