Skip to content

Commit a766a76

Browse files
committed
fix: merge.
2 parents dda06ca + 820e7d5 commit a766a76

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

docker/build/movement/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ RUN adduser -u 1000 -D -s /bin/bash movement
2828
COPY --from=builder /tmp/build/target/release/movement /app/movement
2929
COPY --from=builder /tmp/runtime/nix/store /nix/store
3030

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-
3431
# Environment setup
3532
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
3633
ENV XDG_RUNTIME_DIR="/run/user/1000"
@@ -48,6 +45,9 @@ RUN chmod +x /app/entry.sh
4845
# Switch to non-root user
4946
USER movement
5047

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+
5151
# Manually pull the needed images
5252
# TODO: this should be refactored s.t. we can get the list from the movement command. But, probably not in this PR.
5353
# "movement-full-node"

docker/build/mtma/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ RUN adduser -u 1000 -D -s /bin/bash mtma
2727
COPY --from=builder /tmp/build/target/release/mtma /app/mtma
2828
COPY --from=builder /tmp/runtime/nix/store /nix/store
2929

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-
3330
# Environment setup
3431
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
3532
ENV XDG_RUNTIME_DIR="/run/user/1000"
@@ -47,6 +44,9 @@ RUN chmod +x /app/entry.sh
4744
# Switch to non-root user
4845
USER mtma
4946

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+
5050
# Manually pull the needed images
5151
# TODO: this should be refactored s.t. we can get the list from the movement command. But, probably not in this PR.
5252
# "movement-full-node"

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
if ! podman machine inspect podman-machine-default &>/dev/null; then
132132
echo "Initializing podman machine..."
133133
podman machine init
134+
podman machine start
134135
elif ! podman machine inspect podman-machine-default --format '{{.State}}' | grep -q 'running'; then
135136
echo "Starting podman machine..."
136137
podman machine start

0 commit comments

Comments
 (0)