-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!target/x86_64-unknown-linux-musl/release/server | ||
!tmp |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#export FPCO_CI_REGISTRY_IMAGE ?= registry.gitlab.fpcomplete.com/chrisallen/totto | ||
#export CI_REGISTRY_IMAGE ?= registry.gitlab.com/bitemyapp/totto | ||
#export FPCO_DOCKER_IMAGE ?= ${FPCO_CI_REGISTRY_IMAGE}:latest | ||
#export KUBE_SPEC = etc/kubernetes/totto.yaml | ||
#export DOCKER_IMAGE ?= ${CI_REGISTRY_IMAGE}:latest | ||
|
||
export CI_PIPELINE_ID ?= $(shell date +"%Y-%m-%d-%s") | ||
export SERVER_DOCKER_IMAGE ?= server | ||
|
||
docker-options = --rm -v $(shell pwd):/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry | ||
rust-musl-builder = @docker run $(docker-options) -it ekidd/rust-musl-builder | ||
|
||
test: | ||
$(rust-musl-builder) cargo --version | ||
|
||
build: | ||
@cargo build | ||
|
||
build-test-image: | ||
docker build -t test -f ./etc/docker/test/Dockerfile . | ||
|
||
build-server-image: | ||
#$(rust-musl-builder) cargo build --release | ||
docker build -t "${SERVER_DOCKER_IMAGE}" -f ./etc/docker/server/Dockerfile . |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Rust | ||
|
||
Install the latest rust version (>= 1.32): | ||
|
||
``` | ||
rustc --version | ||
rustc 1.32.0-nightly (21f268495 2018-12-02) | ||
``` | ||
|
||
## Makefile | ||
|
||
For autocomplete, add this to your `~/.bash_profile`: | ||
|
||
``` | ||
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM scratch | ||
COPY target/x86_64-unknown-linux-musl/release/server / | ||
ENTRYPOINT ["/server"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# FROM rust as build | ||
|
||
# COPY ./tmp ./ | ||
# RUN cargo build --release | ||
|
||
FROM scratch | ||
|
||
COPY tmp/target/x86_64-unknown-linux-musl/release/x / | ||
ENTRYPOINT ["/x"] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.