Create root in nixery containers
This commit is contained in:
parent
7e5ff25740
commit
61b7805b4d
|
@ -15,9 +15,8 @@ steps:
|
||||||
- echo "Host git.b12f.io" >> ~/.ssh/config
|
- echo "Host git.b12f.io" >> ~/.ssh/config
|
||||||
- echo " Port 2222" >> ~/.ssh/config
|
- echo " Port 2222" >> ~/.ssh/config
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
- id
|
# This is a hack because nixery containers contain no passwd file, which openssh wants to read
|
||||||
- whoami
|
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
|
||||||
- cat ~/.ssh/config
|
|
||||||
- git clone -b devos git@git.b12f.io:pub-solar/os
|
- git clone -b devos git@git.b12f.io:pub-solar/os
|
||||||
- cd os
|
- cd os
|
||||||
- git remote add devos https://github.com/divnix/devos.git
|
- git remote add devos https://github.com/divnix/devos.git
|
||||||
|
@ -41,6 +40,8 @@ steps:
|
||||||
- echo "Host git.b12f.io" >> ~/.ssh/config
|
- echo "Host git.b12f.io" >> ~/.ssh/config
|
||||||
- echo " Port 2222" >> ~/.ssh/config
|
- echo " Port 2222" >> ~/.ssh/config
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
|
# This is a hack because nixery containers contain no passwd file, which openssh wants to read
|
||||||
|
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
|
||||||
- git clone -b core git@git.b12f.io:pub-solar/os
|
- git clone -b core git@git.b12f.io:pub-solar/os
|
||||||
- cd os
|
- cd os
|
||||||
- git fetch
|
- git fetch
|
||||||
|
|
Loading…
Reference in a new issue