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 " Port 2222" >> ~/.ssh/config
|
||||
- chmod -R 600 ~/.ssh
|
||||
- id
|
||||
- whoami
|
||||
- cat ~/.ssh/config
|
||||
# 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 devos git@git.b12f.io:pub-solar/os
|
||||
- cd os
|
||||
- git remote add devos https://github.com/divnix/devos.git
|
||||
|
@ -41,6 +40,8 @@ steps:
|
|||
- echo "Host git.b12f.io" >> ~/.ssh/config
|
||||
- echo " Port 2222" >> ~/.ssh/config
|
||||
- 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
|
||||
- cd os
|
||||
- git fetch
|
||||
|
|
Loading…
Reference in a new issue