-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from dappnode/pablo/run-migrations
Add fs repo mnigrations
- Loading branch information
Showing
3 changed files
with
16 additions
and
18 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
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,17 @@ | ||
ARG UPSTREAM_VERSION | ||
|
||
# Create intermediate container for the fs-repo-migrations binary. Use a lightweight alpine image | ||
FROM alpine:3.14.2 as fs-repo-migrations | ||
# copy the migrations binary from the url https://dist.ipfs.tech/fs-repo-migrations/v2.0.2/fs-repo-migrations_v2.0.2_darwin-arm64.tar.gz | ||
# to the container and extract it | ||
RUN wget https://dist.ipfs.tech/fs-repo-migrations/v2.0.2/fs-repo-migrations_v2.0.2_linux-amd64.tar.gz && \ | ||
tar -xvf fs-repo-migrations_v2.0.2_linux-amd64.tar.gz && \ | ||
mv fs-repo-migrations/fs-repo-migrations /usr/local/bin/ && \ | ||
rm -rf fs-repo-migrations_v2.0.2_linux-amd64.tar.gz fs-repo-migrations | ||
|
||
|
||
FROM ipfs/kubo:${UPSTREAM_VERSION} | ||
COPY dappnode_entrypoint.sh /usr/local/bin/ | ||
COPY --from=fs-repo-migrations /usr/local/bin/fs-repo-migrations /usr/local/bin/ | ||
USER ipfs | ||
ENTRYPOINT ["/usr/local/bin/dappnode_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