Add Docker support for FoodsharingSiegen project
Introduced Docker setup, including `docker-compose.yml`, `dockerfile.server`, and related Python helper scripts (`image-create.py`, `image-push.py`, `publish-project.py`, `publish-aio.py`) for building, managing, and deploying Docker images. Updated `.gitignore` to exclude published files, and renamed a field label in the Blazor component for better clarity.
This commit is contained in:
15
Docker/publish-aio.py
Normal file
15
Docker/publish-aio.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
# List of scripts to run in order
|
||||
scripts = ['publish-project.py', 'image-create.py', 'image-push.py']
|
||||
|
||||
for script in scripts:
|
||||
print(f"Executing {script}...")
|
||||
try:
|
||||
# Run the script using the current Python interpreter
|
||||
subprocess.run([sys.executable, script], check=True)
|
||||
print(f"{script} executed successfully.\n")
|
||||
except subprocess.CalledProcessError as error:
|
||||
print(f"Error: {script} failed with exit code {error.returncode}.")
|
||||
break
|
||||
Reference in New Issue
Block a user