Skip to content
Snippets Groups Projects
Commit f1ccf400 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

copy cookie from build context and use in container instead of needing to pass...

copy cookie from build context and use in container instead of needing to pass in username and password
parent 7de3428f
No related branches found
No related tags found
No related merge requests found
Pipeline #11814 passed with stages
in 8 minutes and 44 seconds
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
ARG USERNAME
ARG PASSWORD
RUN apt-get update && \
apt-get install -y \
......@@ -29,11 +27,8 @@ RUN apt-get update && \
libgomp1 \
&& rm -rf /var/lib/apt/lists
RUN ENCODED_USERNAME=$(printf '%s' "$USERNAME" | jq -sRr @uri) && \
ENCODED_PASSWORD=$(printf '%s' "$PASSWORD" | jq -sRr @uri) && \
curl -c cookies.txt -X POST -d "log=${ENCODED_USERNAME}&pwd=${ENCODED_PASSWORD}&wp-submit=1" "https://febio.org/wp-login.php" -v && \
curl --output /tmp/febio.zip -b cookies.txt "https://febio.org/download/12171/?tmstv=1729879260" && \
unset USERNAME PASSWORD ENCODED_USERNAME ENCODED_PASSWORD
COPY cookies.txt /tmp/cookies.txt
RUN curl --output /tmp/febio.zip -b /tmp/cookies.txt "https://febio.org/download/12171/?tmstv=1729879260"
RUN unzip /tmp/febio.zip && \
chmod +x FEBioStudio_linux-x64_2.7_FEBio_4.7.run && \
......
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