Volume paths fix

This commit is contained in:
Marcin Czerniak 2024-02-15 17:20:17 +01:00
parent e1cd70aab3
commit 8955e5fca6

View File

@ -314,13 +314,13 @@ if __name__ == "__main__":
print(stdout.read().decode())
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "ENV GITEA__server__APP_DATA_PATH /data/gitea" >> gitea-dockerfile/Dockerfile')
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())
stdin, stdout, stderr = ssh_client.exec_command('sudo echo "EXPOSE 3000" >> gitea-dockerfile/Dockerfile')
print(stdout.read().decode())
stdin, stdout, stderr = ssh_client.exec_command('sudo docker build -t gitea gitea-dockerfile')
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("Gitea and Postgres instances are ready to use.")