File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ RUN adduser -u 1000 -D -s /bin/bash movement
28
28
COPY --from=builder /tmp/build/target/release/movement /app/movement
29
29
COPY --from=builder /tmp/runtime/nix/store /nix/store
30
30
31
- # Set up PATH to include all /nix/store/*/bin dirs
32
- ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
33
-
34
31
# Environment setup
35
32
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
36
33
ENV XDG_RUNTIME_DIR="/run/user/1000"
@@ -48,6 +45,9 @@ RUN chmod +x /app/entry.sh
48
45
# Switch to non-root user
49
46
USER movement
50
47
48
+ # Build up runtime PATH from all bin directories in /nix/store
49
+ ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
50
+
51
51
# Manually pull the needed images
52
52
# TODO: this should be refactored s.t. we can get the list from the movement command. But, probably not in this PR.
53
53
# "movement-full-node"
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ RUN adduser -u 1000 -D -s /bin/bash mtma
27
27
COPY --from=builder /tmp/build/target/release/mtma /app/mtma
28
28
COPY --from=builder /tmp/runtime/nix/store /nix/store
29
29
30
- # Set up PATH to include all /nix/store/*/bin dirs
31
- ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
32
-
33
30
# Environment setup
34
31
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
35
32
ENV XDG_RUNTIME_DIR="/run/user/1000"
@@ -47,6 +44,9 @@ RUN chmod +x /app/entry.sh
47
44
# Switch to non-root user
48
45
USER mtma
49
46
47
+ # Build up runtime PATH from all bin directories in /nix/store
48
+ ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
49
+
50
50
# Manually pull the needed images
51
51
# TODO: this should be refactored s.t. we can get the list from the movement command. But, probably not in this PR.
52
52
# "movement-full-node"
Original file line number Diff line number Diff line change 131
131
if ! podman machine inspect podman-machine-default &>/dev/null; then
132
132
echo "Initializing podman machine..."
133
133
podman machine init
134
+ podman machine start
134
135
elif ! podman machine inspect podman-machine-default --format '{{.State}}' | grep -q 'running'; then
135
136
echo "Starting podman machine..."
136
137
podman machine start
You can’t perform that action at this time.
0 commit comments