Skip to content

Commit f952ca0

Browse files
committed
Creating Dockerfile and changes to pull_casper_node_version.sh to run out of /etc/casper.
1 parent 2569a65 commit f952ca0

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM casperlabs/node-build-u1804
2+
COPY . /src
3+
RUN cd src && cargo build --release
4+
5+
FROM ubuntu:bionic
6+
LABEL vendor=CasperLabs \
7+
description="This container holds casper-node-launcher and scripts for operation of a node on the Casper Network."
8+
9+
WORKDIR /root/
10+
RUN apt-get update && \
11+
apt-get install -y --no-install-recommends curl && \
12+
rm -rf /var/lib/apt/lists/
13+
14+
COPY --from=0 /src/target/release/casper-node-launcher .
15+
COPY ./resources/maintainer_scripts/*.sh /root/

resources/maintainer_scripts/pull_casper_node_version.sh

-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22

3-
set -e
4-
53
# This script will pull casper-node software and associated files required to run or upgrade
64
# casper-node.
75

@@ -96,7 +94,3 @@ echo "Removing $CONFIG_ARCHIVE_PATH"
9694
rm "$CONFIG_ARCHIVE_PATH"
9795

9896
echo "Process Complete."
99-
echo ""
100-
echo "Creating $ETC_FULL_PATH/config.toml by using config_from_example.sh."
101-
cd "$ETC_PATH"
102-
./config_from_example.sh $SEMVER

0 commit comments

Comments
 (0)