forked from paritytech/metadata-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
52 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Local build artifacts | ||
build | ||
node_modules | ||
|
||
# git folder | ||
.git | ||
|
||
# IDE files | ||
.vscode | ||
.idea | ||
|
||
# Frontend files | ||
src |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM rust:1.60 | ||
|
||
# Build time options to avoid dpkg warnings and help with reproducible builds. | ||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
CARGO_HOME="/app/target" | ||
|
||
# Create CARGO_HOME folder and don't download rust docs | ||
RUN mkdir -pv "${CARGO_HOME}" \ | ||
&& rustup set profile minimal | ||
|
||
# Install system packages | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
--no-install-recommends \ | ||
libopencv-dev clang libclang-dev libssl-dev ca-certificates \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT ["cargo", "run", "--release"] |
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 |
---|---|---|
|
@@ -24,3 +24,6 @@ signer: | |
|
||
tests: | ||
cargo test --release | ||
|
||
docker.%: | ||
docker-compose run --rm $(*) |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
services: | ||
_cli: | ||
&cli | ||
build: . | ||
volumes: | ||
- .:/app | ||
|
||
collector: | ||
<<: *cli | ||
command: collect | ||
|
||
updater: | ||
<<: *cli | ||
command: update |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
stable |