You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds new build parameters that make it easy to modify the
creation of a FIREWHEEL docker container and corresponding documentation
to help override the default configuration options. Additionally, this
moves the docker container to use port 2222 by default as this will
prevent conflicts with host systems. This convention is used by other
virtualization systems, such as Vagrant.
Copy file name to clipboardExpand all lines: docker/README.md
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -72,13 +72,26 @@ Rather than describing them here, we refer to the following places:
72
72
* minimega settings are provided in both [start-minimega.sh](./start-minimega.sh) and [minimega](./fsroot/etc/default/minimega).
73
73
* miniweb settings are provided in both [start-minimega.sh](./start-minimega.sh).
74
74
75
+
Currently, the pre-built FIREWHEEL container contains several hard-coded options to work for *most* users.
75
76
The minimega configuration values can be overwritten either by passing environment variables to Docker when starting the container or by binding a file to `/etc/default/minimega` in the container that contains updated values.
76
77
77
-
> [!NOTE]
78
-
> Currently, the FIREWHEEL configuration options are hard-coded to work with this configuration.
79
-
> Flexibility in setting these values may be provided in a future release.
80
-
> overwritten via Docker environment variables.
78
+
Users can also add an additional layer to the docker container to help adjust these values as needed (see: [docker build variables](https://docs.docker.com/build/building/variables)).
79
+
An example of how to do this is shown below:
80
+
81
+
```docker
82
+
# This new container enables users to build the container
83
+
# with an alternative minimega files path
84
+
FROM ghcr.io/sandialabs/firewheel:main AS firewheel
85
+
86
+
# Take in an optional build argument
87
+
ARG MM_FILEPATH=/tmp/minimega/files
81
88
89
+
RUN echo -e "\nMM_FILEPATH=${MM_FILEPATH}" >> /etc/default/minimega
90
+
91
+
RUN bash -c "source /fwpy/bin/activate && \
92
+
mkdir -p ${MM_FILEPATH} \
93
+
firewheel config set -s minimega.files_dir ${MM_FILEPATH}"
94
+
```
82
95
83
96
## Technical Details
84
97
As with most docker containers, the default user is `root`.
0 commit comments