Skip to content
Snippets Groups Projects
Commit c3f4edfa authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Remove useless gitlab tokens & use git clone

parent ac991446
No related branches found
No related tags found
1 merge request!371Remove useless gitlab tokens & use git clone
Pipeline #154198 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment