Volume paths fix
This commit is contained in:
parent
e1cd70aab3
commit
8955e5fca6
@ -314,13 +314,13 @@ if __name__ == "__main__":
|
|||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "ENV GITEA__server__APP_DATA_PATH /data/gitea" >> gitea-dockerfile/Dockerfile')
|
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "ENV GITEA__server__APP_DATA_PATH /data/gitea" >> gitea-dockerfile/Dockerfile')
|
||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "RUN mkdir /data/gitea" >> gitea-dockerfile/Dockerfile')
|
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "RUN mkdir -p /data/gitea" >> gitea-dockerfile/Dockerfile')
|
||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "EXPOSE 3000" >> gitea-dockerfile/Dockerfile')
|
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "EXPOSE 3000" >> gitea-dockerfile/Dockerfile')
|
||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
stdin, stdout, stderr = ssh_client.exec_command('sudo docker build -t gitea gitea-dockerfile')
|
stdin, stdout, stderr = ssh_client.exec_command('sudo docker build -t gitea gitea-dockerfile')
|
||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
stdin, stdout, stderr = ssh_client.exec_command('sudo docker run -d -p 80:3000 -v /data/gitea:/data/gitea gitea')
|
stdin, stdout, stderr = ssh_client.exec_command('sudo docker run -d -p 80:3000 -v /data/gitea:/data gitea')
|
||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
|
|
||||||
print("Gitea and Postgres instances are ready to use.")
|
print("Gitea and Postgres instances are ready to use.")
|
||||||
|
Loading…
Reference in New Issue
Block a user