Package features does not works on windows docker image
Summary
http 500 error when deploying a maven artifact on a gitlab instance running on docker windows.
Steps to reproduce
- Install a docker image on a linux instance (same problem with
gitlab-ce
andgitlab-ee
) :
sudo docker run --detach \
--hostname XXX \
--publish 443:443 --publish 80:80 --publish 2224:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
-
Create token
-
Create settings file with the generated token
-
Run maven command
mvn mvn --settings settings.xml deploy:deploy-file -DgroupId=commons-io -DartifactId=commons-io -Dversion=2.6 -Dpackaging=jar -Dfile=XXX\commons-io-2.6.jar -DpomFile=XXX\commons-io-2.6.pom -DrepositoryId=gitlab-maven -Durl=http://xxx/api/v4/projects/2/packages/maven
The jar is added, no problem.
Do the same steps on docker windows
docker run --detach --hostname xxx \
--publish 443:443 --publish 8082:80 --publish 22:22 \
--name gitlab --restart always \
--volume $root_dir\config:/etc/gitlab \
--volume $root_dir\logs:/var/log/gitlab \
--volume $root_dir\data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
When I try to deploy maven package, I get a http 500 error.
What is the current bug behavior?
When I try to deploy maven package, I get a http 500 error.
What is the expected correct behavior?
Maven package uploaded.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Same issue with gitlab ce and gitlab ee.
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)