Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gitlab-ce-docker update failed #1043

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Conversation

daniel-hutao
Copy link
Member

Signed-off-by: Daniel Hu tao.hu@merico.dev

Pre-Checklist

Note: please complete ALL items in the following checklist.

  • I have read through the CONTRIBUTING.md documentation.
  • My code has the necessary comments and documentation (if needed).
  • I have added relevant tests

Description

fix gitlab-ce-docker update failed

Related Issues

fix #1042

New Behavior (screenshots if needed)

  • ./dtm apply -f config-gitlab-jenkins-harbor-java.yaml
2022-09-01 16:56:29 ℹ [INFO]  Apply started.
2022-09-01 16:56:29 ℹ [INFO]  Using dir </Users/danielhu/.devstream/plugins> to store plugins.
2022-09-01 16:56:29 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-09-01 16:56:29 ℹ [INFO]  Tool (gitlab-ce-docker/default) config drifted from the state, will be updated.
Continue? [y/n]
Enter a value (Default is n): y

2022-09-01 16:56:32 ℹ [INFO]  Start executing the plan.
2022-09-01 16:56:32 ℹ [INFO]  Changes count: 1.
2022-09-01 16:56:32 ℹ [INFO]  -------------------- [  Processing progress: 1/1.  ] --------------------
2022-09-01 16:56:32 ℹ [INFO]  Processing: (gitlab-ce-docker/default) -> Update ...
2022-09-01 16:56:33 ℹ [INFO]  Stopping container gitlab ...
2022-09-01 16:56:33 ℹ [INFO]  Cmd: docker stop gitlab.
Stdout: gitlab
2022-09-01 16:56:46 ℹ [INFO]  Cmd: docker inspect gitlab.
2022-09-01 16:56:46 ℹ [INFO]  Removing container gitlab ...
2022-09-01 16:56:46 ℹ [INFO]  Cmd: docker rm gitlab.
Stdout: gitlab
2022-09-01 16:56:46 ℹ [INFO]  Cmd: docker inspect gitlab.
2022-09-01 16:56:46 ℹ [INFO]  Cmd: docker image ls gitlab/gitlab-ce:rc -q.
2022-09-01 16:56:46 ℹ [INFO]  Running container as the name <gitlab>
2022-09-01 16:56:46 ℹ [INFO]  Cmd: docker run --detach --hostname gitlab.example.com --publish 22:22 --publish 8080:80 --publish 443:443 --name gitlab --restart always --volume /Users/danielhu/dtm-test/gitlab/config:/etc/gitlab --volume /Users/danielhu/dtm-test/gitlab/data:/var/opt/gitlab --volume /Users/danielhu/dtm-test/gitlab/logs:/var/log/gitlab gitlab/gitlab-ce:rc.
Stderr: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Stdout: 6a013e9d047bf74e185d5da437f1f78d551f92a86004ae4eb9bbc758e49c5e62
2022-09-01 16:56:46 ℹ [INFO]  Cmd: docker inspect --format='{{json .Mounts}}' gitlab.
2022-09-01 16:56:46 ℹ [INFO]  GitLab access URL: http://gitlab.example.com:8080
2022-09-01 16:56:46 ℹ [INFO]  GitLab initial root password: execute the command -> docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
2022-09-01 16:56:47 ℹ [INFO]  Cmd: docker inspect --format='{{json .Mounts}}' gitlab.
2022-09-01 16:56:47 ℹ [INFO]  Cmd: docker inspect --format='{{.Config.Hostname}}' gitlab.
2022-09-01 16:56:47 ℹ [INFO]  Cmd: docker inspect --format='{{range $p,$conf := .NetworkSettings.Ports}}{{$p}}->{{(index $conf 0).HostPort}}{{println}}{{end}}' gitlab.
2022-09-01 16:56:47 ✔ [SUCCESS]  Tool (gitlab-ce-docker/default) Update done.
2022-09-01 16:56:47 ℹ [INFO]  -------------------- [  Processing done.  ] --------------------
2022-09-01 16:56:47 ✔ [SUCCESS]  All plugins applied successfully.
2022-09-01 16:56:47 ✔ [SUCCESS]  Apply finished.

Signed-off-by: Daniel Hu <tao.hu@merico.dev>
Copy link
Member

@iyear iyear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iyear iyear merged commit 36d9c37 into devstream-io:main Sep 1, 2022
@daniel-hutao daniel-hutao deleted the fix-gitlab branch September 4, 2022 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💣 Bug: gitlab-ce-docker update error
5 participants