GitXplorerGitXplorer
l

gitlab-ce-ssh-test

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
e1f23079d5b1f82af121982120a3e1da8a473034

update github runner test in README

llinghengqian committed a month ago
Unverified
515723f1051f7ba6d19054ecb24f623dcb9e5e33

update issue in README

llinghengqian committed a month ago
Unverified
94f20f7628c4ada3594d8562d000b44d85b50d2e

update file name in README

llinghengqian committed a month ago
Unverified
711c7fb9c7d6c1a6fc610adb09f3b0cd0cbdae24

update test in README

llinghengqian committed a month ago
Unverified
1eda3c48c63029e0c618d139e4a1b8a905557c0f

update README

llinghengqian committed a month ago
Unverified
34bcd5a1bc7f5f00bb0c967ea5f29f92667a1a77

init

llinghengqian committed a month ago

README

The README file for this repository.

gitlab-ce-ssh-test

Unknown tests

git clone git@github.com:linghengqian/gitlab-ce-ssh-test.git
cd ./gitlab-ce-ssh-test/
docker compose --file ./docker-compose-unknown.yml pull
docker compose --file ./docker-compose-unknown.yml up -d
  • To remove the Docker Compose unit, execute the following command.
docker compose --file ./docker-compose-unknown.yml down --volumes

Successful unit testing

git clone git@github.com:linghengqian/gitlab-ce-ssh-test.git
cd ./gitlab-ce-ssh-test/
docker compose --file ./docker-compose-success.yml pull
docker compose --file ./docker-compose-success.yml up -d
  • To remove the Docker Compose unit, execute the following command.
docker compose --file ./docker-compose-success.yml down --volumes

Additional Topics

# Here is a simple test.

# ... Generate SSH key

cat ~/.ssh/id_ed25519.pub

# ... Upload the SSH public key to http://localhost:12345/-/user_settings/ssh_keys .

ssh -T ssh://git@127.0.0.1:22345

# .. After uploading the project, try to clone it.
cd /tmp/
git clone ssh://git@127.0.0.1:22345/linghengqian/gitlab-ce-ssh-test.git
# Here is a simple test.

docker pull apache/hive:4.0.0
docker tag apache/hive:4.0.0 127.0.0.1:32345/linghengqian/gitlab-ce-ssh-test/apache-hive:4.0.0
docker login 127.0.0.1:32345
docker push 127.0.0.1:32345/linghengqian/gitlab-ce-ssh-test/apache-hive:4.0.0
docker image rm 127.0.0.1:32345/linghengqian/gitlab-ce-ssh-test/apache-hive:4.0.0
docker pull 127.0.0.1:32345/linghengqian/gitlab-ce-ssh-test/apache-hive:4.0.0
puma['worker_processes'] = 0
sidekiq['concurrency'] = 10
prometheus_monitoring['enable'] = false

Additional Topics about Runner

  • docker-compose-runner.yml tests against Gitlab Runner.
docker compose --file ./docker-compose-runner.yml pull
docker compose --file ./docker-compose-runner.yml up -d
docker compose --file ./docker-compose-runner.yml exec gitlab-runner-first /bin/bash

gitlab-runner register \
  --non-interactive \
  --url http://gitlab-ce:12345 \
  --token <Aloha, your Token> \
  --executor docker \
  --docker-image alpine:latest \
  --description "docker-runner" \
  --docker-volumes /var/run/docker.sock:/var/run/docker.sock \
  --clone-url http://gitlab-ce:12345 \
  --docker-network-mode gitlab-ce-ssh-test_default
  
cat /etc/gitlab-runner/config.toml

exit

docker compose --file ./docker-compose-runner.yml down --volumes