Skip to content

Update details on runtime environment #7

@brain-slug

Description

@brain-slug

Hi,

I tried to get it running using a Docker image based on ubuntu:20.04

FROM ubuntu:20.04

ENV SOURCE_GITLAB=git.mycompany.com
ENV TARGET_GITLAB=gitlab.com

RUN adduser migration

RUN apt-get update && \
    apt-get install git jq curl vim -y

COPY resources/migrate.sh /home/migration/
COPY resources/.secrets /home/migration/

RUN chown migration:migration /home/migration/migrate.sh && chmod +x /home/migration/migrate.sh
RUN chown migration:migration /home/migration/.secrets

USER migration

I verified .secrets file is read correctly (after fixing EOL issues) adding echo.

Still I am seeing multiple curl errors like curl: (3) URL using bad/illegal format or missing URL.

  • Source GitLab Version: GitLab Enterprise Edition 14.3.1-ee
  • Target gitlab.com
  • curl --version curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 Release-Date: 2020-01-08
  • jq --version jq-1.6
  • bash --versionGNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)

Fun fact if I add CURL_PARAMS="-v"to migrate.sh it works...
Could you please share runtime specific settings (bash_profile/locale/encoding etc) which have proofed to be working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions