Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Arkindex
Tasks
Commits
c3f4edfa
Commit
c3f4edfa
authored
1 year ago
by
Bastien Abadie
Browse files
Options
Downloads
Patches
Plain Diff
Remove useless gitlab tokens & use git clone
parent
ac991446
No related branches found
No related tags found
1 merge request
!371
Remove useless gitlab tokens & use git clone
Pipeline
#154198
passed
1 year ago
Stage: release
Changes
1
Pipelines
13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+2
-11
2 additions, 11 deletions
Dockerfile
with
2 additions
and
11 deletions
Dockerfile
+
2
−
11
View file @
c3f4edfa
...
...
@@ -7,26 +7,17 @@ RUN cd build && python3 setup.py sdist
FROM
registry.gitlab.teklia.com/arkindex/tasks/base:libmagic
ARG
CLIENT_BRANCH=master
ARG
CLIENT_ID=7122981
ARG
TRANSKRIBUS_BRANCH=master
ARG
TRANSKRIBUS_ID=11180199
ARG
GITLAB_TOKEN="M98p3wihATgCx4Z5ChvK"
# Install api-client via the repo - allows testing using other branches
RUN
\
mkdir
/tmp/client
&&
\
wget
--header
"PRIVATE-TOKEN:
$GITLAB_TOKEN
"
https://gitlab.com/api/v4/projects/
$CLIENT_ID
/repository/archive.tar.gz?sha
=
$CLIENT_BRANCH
-O
/tmp/client/archive.tar.gz
&&
\
tar
--strip-components
=
1
-xvf
/tmp/client/archive.tar.gz
-C
/tmp/client
&&
\
RUN
git clone
--branch
=
$CLIENT_BRANCH
https://gitlab.teklia.com/arkindex/api-client.git /tmp/client
&&
\
cd
/tmp/client
&&
\
pip
install
git+https://gitlab.teklia.com/arkindex/apistar.git
&&
\
python setup.py
install
&&
\
rm
-rf
/tmp/client
# Install Transkribus client from the repo
RUN
\
mkdir
/tmp/transkribus
&&
\
wget
--header
"PRIVATE-TOKEN:
$GITLAB_TOKEN
"
https://gitlab.com/api/v4/projects/
$TRANSKRIBUS_ID
/repository/archive.tar.gz?sha
=
$TRANSKRIBUS_BRANCH
-O
/tmp/transkribus/archive.tar.gz
&&
\
tar
--strip-components
=
1
-xvf
/tmp/transkribus/archive.tar.gz
-C
/tmp/transkribus
&&
\
RUN
git clone
--branch
=
$TRANSKRIBUS_BRANCH
https://gitlab.teklia.com/arkindex/transkribus /tmp/transkribus
&&
\
cd
/tmp/transkribus
&&
python setup.py
install
&&
\
rm
-rf
/tmp/transkribus
...
...
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