I am trying to set up a development environment in a Docker Container in its own volume starting from a Alpine Linux image. This way a reproducible and fast build environment can be created.
The problem I am running in to is downloading the XTC Tools file from the XMOS site. Downloading the file requires the user to be logged in, if the user is not logged in. "wget"-, "curl"-package and ADD(Dockerfile) are not able to retrieve the *.tgz file. The function just returns the html login page. Is there any work around? Is there any official mirror link that supports a direct download? Passing the --username and --password argument in both the wget and curl does not solve the issue. The following code snippets show the basic Dockerfile and the commands that I have tried to retrieve the .tgz file.
Simplified Dockerfile:
Code: Select all
FROM alpine:3.18.5
RUN apk add --no-cache &&\
apk add wget &&\
apk add curl
Code: Select all
wget "https://www.xmos.com/download/Tools-15---Linux-64(15_2_1).tgz"
wget --user=USERNAME --password=PASSWORD "https://www.xmos.com/download/Tools-15---Linux-64(15_2_1).tgz"
Code: Select all
curl -L "https://www.xmos.com/download/Tools-15---Linux-64(15_2_1).tgz"
curl -LO -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" "https://www.xmos.com/download/Tools-15---Linux-64(15_2_1).tgz"
curl --data "Username=xx&Password=xx&Login=Login" "https://www.xmos.com/download/Tools-15---Linux-64(15_2_1).tgz"
Code: Select all
ADD "https://www.xmos.com/download/Tools-15---Linux-64(15_2_1).tgz" .
Kind regards.