Skip to content

Commit

Permalink
fixed vulnerabilities & updated build scripts for mainnet (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
JogeshwarS authored Jul 18, 2024
1 parent 0c23be5 commit ca08eb3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ while getopts ":e:h-:" opt; do
case $opt in
e)
ENVIRONMENT="$OPTARG"
if [ "$ENVIRONMENT" != "qa" ] && [ "$ENVIRONMENT" != "thunder" ]; then
echo "Invalid Environment '$ENVIRONMENT'. Only 'qa' and 'thunder' envrionments are allowed at the moment"
if [ "$ENVIRONMENT" != "qa" ] && [ "$ENVIRONMENT" != "thunder" ] && [ "$ENVIRONMENT" != "mainnet" ]; then
echo "Invalid Environment '$ENVIRONMENT'. Only 'qa', 'thunder' and 'mainnet' envrionments are allowed at the moment"
exit 1
fi
;;
Expand Down
6 changes: 0 additions & 6 deletions docker/firechain_builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ COPY --from=builder /5ire/target/release/firechain-node /5ire/firechain-node

COPY --from=builder /5ire/specs/5ire-${environment}-specRaw.json /5ire/specs/5ire-${environment}-specRaw.json

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends curl git openssh-client; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

RUN ldd /5ire/firechain-node
RUN /5ire/firechain-node --version

Expand Down
4 changes: 2 additions & 2 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ while [[ $# -gt 0 ]]; do
;;
-e)
environment="$2"
if [ "$environment" != "qa" ] && [ "$environment" != "thunder" ]; then
echo "Invalid Environment '$environment'. Only 'qa' and 'thunder' envrionments are allowed at the moment"
if [ "$environment" != "qa" ] && [ "$environment" != "thunder" ] && [ "$environment" != "mainnet" ]; then
echo "Invalid Environment '$environment'. Only 'qa', 'thunder' and 'mainnet' envrionments are allowed at the moment"
exit 1
fi
shift 2
Expand Down
4 changes: 2 additions & 2 deletions docker/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ while [[ $# -gt 0 ]]; do
case $1 in
-e)
environment="$2"
if [ "$environment" != "qa" ] && [ "$environment" != "thunder" ]; then
echo "Invalid Environment '$environment'. Only 'qa' and 'thunder' envrionments are allowed at the moment"
if [ "$environment" != "qa" ] && [ "$environment" != "thunder" ] && [ "$environment" != "mainnet" ]; then
echo "Invalid Environment '$environment'. Only 'qa', 'thunder' and 'mainnet' envrionments are allowed at the moment"
exit 1
fi
shift 2
Expand Down

0 comments on commit ca08eb3

Please sign in to comment.