Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
|
@@ -1,13 +1,23 @@
|
|
| 1 |
# Use the specified image from Docker Hub
|
| 2 |
FROM williamjackson/excalibur:0.4.3
|
| 3 |
|
| 4 |
-
# Set the working directory
|
| 5 |
WORKDIR /excalibur
|
| 6 |
|
| 7 |
# Create a volume for your data directory (local path on your machine)
|
| 8 |
VOLUME ["~/excalibur-data"]
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Initialize the database (this will be run when the container starts)
|
| 11 |
CMD ["initdb"]
|
|
|
|
|
|
|
| 12 |
CMD docker pull alexeiled/docker-oracle-xe-11g
|
| 13 |
-
CMD docker run -v ~/excalibur-data:/excalibur excalibur-image
|
|
|
|
| 1 |
# Use the specified image from Docker Hub
|
| 2 |
FROM williamjackson/excalibur:0.4.3
|
| 3 |
|
| 4 |
+
# Set the working directory inside the container
|
| 5 |
WORKDIR /excalibur
|
| 6 |
|
| 7 |
# Create a volume for your data directory (local path on your machine)
|
| 8 |
VOLUME ["~/excalibur-data"]
|
| 9 |
|
| 10 |
+
# Set environment variables to define the config file path
|
| 11 |
+
ENV EXCALIBUR_CONFIG=/excalibur/excalibur.cfg
|
| 12 |
+
|
| 13 |
+
# Ensure the /excalibur directory and the configuration file are writable
|
| 14 |
+
RUN chmod -R 755 /excalibur && \
|
| 15 |
+
touch /excalibur/excalibur.cfg && \
|
| 16 |
+
chmod u+w /excalibur/excalibur.cfg
|
| 17 |
+
|
| 18 |
# Initialize the database (this will be run when the container starts)
|
| 19 |
CMD ["initdb"]
|
| 20 |
+
|
| 21 |
+
# Optionally, add any other necessary commands here, such as:
|
| 22 |
CMD docker pull alexeiled/docker-oracle-xe-11g
|
| 23 |
+
CMD docker run -v ~/excalibur-data:/excalibur excalibur-image
|