Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
LarvaTagger.jl
Commits
09c4fc4f
Commit
09c4fc4f
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
Docker image builds 20221005 backend per default
parent
577469ef
No related branches found
No related tags found
No related merge requests found
Pipeline
#89935
passed
2 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
recipes/Dockerfile
+29
-20
29 additions, 20 deletions
recipes/Dockerfile
recipes/Dockerfile.local
+4
-4
4 additions, 4 deletions
recipes/Dockerfile.local
scripts/larvatagger.sh
+1
-1
1 addition, 1 deletion
scripts/larvatagger.sh
with
34 additions
and
25 deletions
recipes/Dockerfile
+
29
−
20
View file @
09c4fc4f
FROM
julia:1.
7.3
-bullseye
FROM
julia:1.
8.2
-bullseye
ENV
DIRNAME app
ARG
BRANCH=main
RUN
apt-get update
&&
apt-get
install
-y
\
git
\
ARG
TIMEZONE=UTC
RUN
apt-get update
\
&&
apt-get
install
-y
git
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
git clone
--depth
1
--single-branch
-b
$BRANCH
https://gitlab.pasteur.fr/nyx/larvatagger.jl
$DIRNAME
\
&&
julia
--project
=
$DIRNAME
-e
'using Pkg; Pkg.instantiate()'
\
&&
ln
-s
/
$DIRNAME
/scripts/larvatagger.jl /bin
# COPY requires at least one file defined, hence `test/precompile.sh`
COPY
test/precompile.sh test/data_sample* $DIRNAME/test/
ARG
TIMEZONE=UTC
RUN
ln
-snf
/usr/share/zoneinfo/
$TIMEZONE
/etc/localtime
\
&&
echo
$TIMEZONE
>
/etc/timezone
\
&&
$DIRNAME
/test/precompile.sh
--shallow
\
&&
mv
larvatagger.so /lib/
\
&&
rm
-f
$DIRNAME
/test/data_sample
*
&&
ln
-s
/
$DIRNAME
/scripts/larvatagger.jl /bin
\
&&
ln
-snf
/usr/share/zoneinfo/
$TIMEZONE
/etc/localtime
\
&&
echo
$TIMEZONE
>
/etc/timezone
COPY
external $DIRNAME/
ARG
BACKEND
RUN if
[
"
$BACKEND
"
=
"MaggotUBA/20220418"
]
;
then
\
apt-get update
&&
apt-get
install
-y
\
python3-pip
\
RUN
cd
$DIRNAME
;
\
if
[
"
$BACKEND
"
=
"MaggotUBA/20220418"
]
;
then
\
apt-get update
\
&&
apt-get
install
-y
python3-pip
\
&&
python3
-m
pip
install
poetry
\
&&
cd
$DIRNAME
\
&&
git clone
--depth
1
--single-branch
-b
20220418 https://gitlab.pasteur.fr/nyx/MaggotUBA-adapter MaggotUBA
\
&&
cd
MaggotUBA
\
&&
python3
-m
poetry remove structured-temporal-convolution
\
&&
python3
-m
poetry add ../structured-temporal-convolution
\
&&
python3
-m
poetry
install
\
&&
cd
..
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
;
\
elif
[
"
$BACKEND
"
=
"MaggotUBA/20221005"
]
;
then
\
apt-get update
\
&&
apt-get
install
-y
python3-pip
\
&&
python3
-m
pip
install
poetry
\
&&
git clone
--depth
1
--single-branch
-b
20221005 https://gitlab.pasteur.fr/nyx/MaggotUBA-adapter MaggotUBA
\
&&
cd
MaggotUBA
\
&&
python3
-m
poetry remove structured-temporal-convolution
\
&&
python3
-m
poetry add ../structured-temporal-convolution
\
&&
python3
-m
poetry
install
\
&&
python3
-m
poetry run python
-c
'import julia; julia.install()'
\
&&
python3
-m
poetry run python
-c
'from julia.api import Julia; Julia(compiled_modules=False); from julia import Pkg; Pkg.add(url="https://gitlab.pasteur.fr/nyx/planarlarvae.jl", rev="dev"); Pkg.add(url="https://gitlab.pasteur.fr/nyx/TaggingBackends", rev="dev")'
\
&&
cd
..
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
;
\
fi
fi
;
\
cd
..
ENTRYPOINT
["larvatagger.jl"
, "--sysimage", "/lib/larvatagger.so"
]
ENTRYPOINT
["larvatagger.jl"]
This diff is collapsed.
Click to expand it.
recipes/Dockerfile.local
+
4
−
4
View file @
09c4fc4f
FROM julia:1.
7.3
-bullseye
FROM julia:1.
8.2
-bullseye
COPY src /app/src/
COPY scripts /app/scripts/
COPY Project.toml Manifest.toml /app/
RUN apt-get update
&& apt-get install -y
\
git \
RUN apt-get update \
&& apt-get install -y
git \
&& rm -rf /var/lib/apt/lists/* \
&& cd /app \
&& julia --project=. -e 'using Pkg; Pkg.instantiate()' \
ln -s /app/scripts/larvatagger.jl /bin
&&
ln -s /app/scripts/larvatagger.jl /bin
ENTRYPOINT ["larvatagger.jl"]
This diff is collapsed.
Click to expand it.
scripts/larvatagger.sh
+
1
−
1
View file @
09c4fc4f
...
...
@@ -17,7 +17,7 @@ while ! [ -z "$1" ]; do
if
[
"
$1
"
==
"--dev"
-o
"
$1
"
==
"--stable"
]
;
then
BUILD
=
$1
;
shift
elif
[
"
$1
"
==
"--get-backend"
]
;
then
DOCKER_ARGS
=
"--build-arg BACKEND=MaggotUBA/2022
0418
"
;
shift
DOCKER_ARGS
=
"--build-arg BACKEND=MaggotUBA/2022
1005
"
;
shift
cd
./external
if
[
-d
structured-temporal-convolution
]
;
then
cd
structured-temporal-convolution
;
git pull
;
cd
..
...
...
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