-
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
Showing
4 changed files
with
60 additions
and
12 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,12 @@ | ||
FROM rust:1.34.1 as cargo-build | ||
RUN apt-get update | ||
RUN apt-get install musl-tools -y | ||
RUN rustup target add x86_64-unknown-linux-musl | ||
RUN cargo install migrant --version=0.12.0 --features=postgres --target=x86_64-unknown-linux-musl | ||
|
||
FROM alpine:latest | ||
COPY --from=cargo-build /usr/local/cargo/bin/migrant /bin/migrant | ||
WORKDIR /etc/migrant | ||
COPY biketracker-server/Migrant-env.toml ./Migrant.toml | ||
COPY biketracker-server/migrations ./migrations | ||
ENTRYPOINT ["migrant"] |
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,18 @@ | ||
# Required, do not edit | ||
database_type = "postgres" | ||
|
||
# Required database info | ||
database_name = "env:BIKETRACKER_SERVER_Db.Database" | ||
database_user = "env:BIKETRACKER_SERVER_Db.Username" | ||
database_password = "env:BIKETRACKER_SERVER_Db.Password" | ||
|
||
# Configurable database info | ||
database_host = "env:BIKETRACKER_SERVER_Db.Host" # default "localhost" | ||
database_port = "5432" # default "5432" | ||
migration_location = "migrations" # default "migrations" | ||
|
||
# Extra database connection parameters | ||
# with the format: | ||
# [database_params] | ||
# key = "value" | ||
[database_params] |
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