-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a01a05f
commit b7b4fc4
Showing
11 changed files
with
97 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: Docker | ||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- "main" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
variable "efs_fs_id" { | ||
type = string | ||
description = "ID of EFS resource to use as persistance." | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
FROM amazon/aws-cli | ||
RUN yum update -y && yum install -y tar gzip | ||
RUN yum update -y && yum install -y tar gzip unzip curl | ||
|
||
WORKDIR /var/hydra-node | ||
RUN curl -L -O https://github.com/cardano-scaling/hydra/releases/download/0.19.0/hydra-x86_64-linux-0.19.0.zip | ||
RUN unzip -d bin hydra-x86_64-linux-0.19.0.zip | ||
RUN cp /var/hydra-node/bin/hydra-node /hydra-node | ||
RUN chmod +x /hydra-node | ||
|
||
COPY docker/entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["sh", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
aws s3 cp "s3://$BUCKET/$KEY" "$DATA_DIR" | ||
tar -xzvf "$DATA_DIR/$KEY" -C "$DATA_DIR" | ||
#!/bin/sh | ||
if aws s3 ls "s3://$BUCKET/$KEY" > /dev/null 2>&1; then | ||
echo "Snapshot exists, downloading..." | ||
aws s3 cp "s3://$BUCKET/$KEY" "$DATA_DIR" | ||
tar -xzvf "$DATA_DIR/$KEY" -C "$DATA_DIR" | ||
else | ||
echo "Snapshot does not exist, generating keys..." | ||
mkdir "$DATA_DIR/keys" | ||
/hydra-node gen-hydra-key --output-file "$DATA_DIR/keys/hydra" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters