Last active
July 18, 2016 19:33
-
-
Save v1k0d3n/b986258d63083d1ba32d111989206656 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### FIRST ATTEMPT ##### | |
[fedora@stockyard ~]$ sudo atomic install projectatomic/atomic-registry-install 172.29.248.33 | |
latest: Pulling from docker.io/projectatomic/atomic-registry-install | |
3690474eb5b4: Pull complete | |
b48a20c39b28: Pull complete | |
c79ebe41b35a: Pull complete | |
4e341511e215: Pull complete | |
24e6149fea0e: Pull complete | |
a7337755e298: Pull complete | |
adec44d0d593: Pull complete | |
8b41b6273164: Pull complete | |
f06c8c879e05: Pull complete | |
Digest: sha256:b595edbd7ae17a97e6cc241e8a5670448b1a20a8f95e0c4f71e57a958f3f5c6b | |
Status: Downloaded newer image for docker.io/projectatomic/atomic-registry-install:latest | |
docker run -it --rm --privileged --net=host -v /etc/atomic-registry/:/etc/atomic-registry/ -v /var/lib/atomic-registry/:/var/lib/atomic-registry/ -v /:/host --entrypoint /usr/bin/install.sh $IMAGE | |
docker: "run" requires a minimum of 1 argument. See 'docker run --help'. | |
[fedora@stockyard ~]$ sudo docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
docker.io/projectatomic/atomic-registry-install latest f06c8c879e05 4 weeks ago 415 MB | |
docker.io/projectatomic/atomic-registry-quickstart latest ed48db267c40 8 weeks ago 426.7 MB | |
[fedora@stockyard ~]$ sudo systemctl start atomic-registry-master.service | |
Failed to start atomic-registry-master.service: Unit atomic-registry-master.service failed to load: No such file or directory. | |
[fedora@stockyard ~]$ | |
[fedora@stockyard ~]$ sudo rpm-ostree status | |
TIMESTAMP (UTC) VERSION ID OSNAME REFSPEC | |
* 2015-05-21 19:01:46 22.17 06a63ecfcf fedora-atomic fedora-atomic:fedora-atomic/f22/x86_64/docker-host | |
[fedora@stockyard ~]$ | |
##### SECOND ATTEMPT ##### | |
[fedora@stockyard ~]$ sudo atomic install projectatomic/atomic-registry-install stockyard | |
latest: Pulling from docker.io/projectatomic/atomic-registry-install | |
3690474eb5b4: Pull complete | |
b48a20c39b28: Pull complete | |
c79ebe41b35a: Pull complete | |
4e341511e215: Pull complete | |
a86cce298346: Pull complete | |
5ab5743cdf89: Pull complete | |
9b154a77feea: Pull complete | |
5ec32b7f16a5: Pull complete | |
cedc48c118e6: Pull complete | |
Digest: sha256:d8f6eaa280e7fbff51c209c027b996f3e57045a5a6d43a0b2244c13d2a2d73c5 | |
Status: Downloaded newer image for docker.io/projectatomic/atomic-registry-install:latest | |
docker run -it --rm --privileged --net=host -v /etc/atomic-registry/:/etc/atomic-registry/ -v /var/lib/atomic-registry/:/var/lib/atomic-registry/ -v /:/host --entrypoint /usr/bin/install.sh $IMAGE | |
docker: "run" requires a minimum of 1 argument. See 'docker run --help'. | |
[fedora@stockyard ~]$ sudo docker run -it --rm --privileged --net=host -v /etc/atomic-registry/:/etc/atomic-registry/ -v /var/lib/atomic-registry/:/var/lib/atomic-registry/ -v /:/host --entrypoint /usr/bin/install.sh ^C | |
[fedora@stockyard ~]$ docker images | |
FATA[0000] Get http:///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS? | |
[fedora@stockyard ~]$ sudo docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
docker.io/projectatomic/atomic-registry-install latest cedc48c118e6 44 minutes ago 426 MB | |
[fedora@stockyard ~]$ sudo docker run -it --rm --privileged --net=host -v /etc/atomic-registry/:/etc/atomic-registry/ -v /var/lib/atomic-registry/:/var/lib/atomic-registry/ -v /:/host --entrypoint /usr/bin/install.sh cedc48c118e6 | |
Installing using hostname stockyard.jinkit.com | |
Wrote master config to: /etc/atomic-registry/master/master-config.yaml | |
Copy files to host | |
+ mkdir -p /etc/atomic-registry/master/site | |
+ mkdir -p /etc/atomic-registry/registry | |
+ mkdir -p /etc/atomic-registry/serviceaccount | |
+ mkdir -p /host/var/lib/atomic-registry/registry | |
+ cp /exports/unit_files/atomic-registry-console.service /exports/unit_files/atomic-registry-master.service /exports/unit_files/atomic-registry.service /host/etc/systemd/system/ | |
+ cp /exports/config/atomic-registry /exports/config/atomic-registry-console /exports/config/atomic-registry-master /host/etc/sysconfig/ | |
+ cp /exports/oauthclient.yaml /etc/atomic-registry/master/ | |
+ cp /exports/setup-atomic-registry.sh /host/var/run/ | |
+ cp /exports/registry-login-template.html /host/etc/atomic-registry/master/site/ | |
+ chown -R 1001:root /host/var/lib/atomic-registry/registry | |
+ chown -R 1001:root /etc/atomic-registry/registry | |
+ set +x | |
Add serviceaccount token and certificate to registry configuration | |
+ echo OPENSHIFT_OAUTH_PROVIDER_URL=https://stockyard.jinkit.com:8443 | |
+ echo REGISTRY_HOST=stockyard.jinkit.com:5000 | |
++ md5sum | |
++ date | |
+ echo 'REGISTRY_HTTP_SECRET=f78a63b0c754b39cf756575f1e4fc658 -' | |
+ chroot /host systemctl daemon-reload | |
** | |
ERROR:pkttyagent.c:147:main: assertion failed: (polkit_unix_process_get_start_time (POLKIT_UNIX_PROCESS (subject)) > 0) | |
+ set +x | |
Updating login template | |
Optionally edit configuration file authentication /etc/atomic-registry/master/master-config.yaml, | |
and/or add certificates to /etc/atomic-registry/master, | |
then enable and start services: | |
sudo systemctl enable --now atomic-registry-master.service | |
Once all 3 containers are running (docker ps), run the setup script | |
(you can run it again if it is run early and fails) | |
sudo /var/run/setup-atomic-registry.sh stockyard.jinkit.com | |
[fedora@stockyard ~]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment