Compare commits
No commits in common. "05a711ac52e1155f856fae3b5d4f4cc1a7d1a748" and "ed1d0b62d816c0ff17ba0dd4f4f81a2290b126a6" have entirely different histories.
05a711ac52
...
ed1d0b62d8
7 changed files with 0 additions and 64 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -20,6 +20,3 @@ Cargo.lock
|
|||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
|
||||
# Result
|
||||
build/*
|
|
@ -1,28 +0,0 @@
|
|||
## BACKEND ##
|
||||
# Parent image
|
||||
FROM debian
|
||||
|
||||
# Creating directories
|
||||
RUN mkdir /work /src /app
|
||||
WORKDIR /work
|
||||
|
||||
# Installing Deps
|
||||
RUN apt update -y
|
||||
RUN apt install -y wget build-essential libssl-dev pkg-config
|
||||
|
||||
# Downloading Rust Install Script
|
||||
RUN wget https://sh.rustup.rs -O /tmp/rust.sh
|
||||
RUN chmod +x /tmp/rust.sh
|
||||
|
||||
# Installing Rust Toolchain
|
||||
RUN /tmp/rust.sh -y
|
||||
|
||||
# Getting Environment Variable
|
||||
ENV PROJ_NAME=example
|
||||
|
||||
# Copying Build Script
|
||||
COPY docker/build/build.sh /bin/build.sh
|
||||
RUN chmod +x /bin/build.sh
|
||||
|
||||
## RUNTILE ##
|
||||
CMD ["bash", "/bin/build.sh"]
|
|
@ -1,8 +0,0 @@
|
|||
# Copying source code to working directory
|
||||
cp -r /src/* .
|
||||
|
||||
# Building the app
|
||||
/root/.cargo/bin/cargo build
|
||||
|
||||
# Copying app to Result Directory
|
||||
cp target/debug/$PROJ_NAME /app/$PROJ_NAME
|
|
@ -1,6 +0,0 @@
|
|||
[package]
|
||||
name = "example"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
|
@ -1,3 +0,0 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Clearing The Screen
|
||||
clear
|
||||
|
||||
# Building the Rust App
|
||||
docker run --rm -it \
|
||||
-v "$PWD/project:/src:Z" \
|
||||
-v "$PWD/build:/app:Z" \
|
||||
-e "PROJ_NAME=example" \
|
||||
rust-buildbot $@
|
|
@ -1,7 +0,0 @@
|
|||
# Clearing The Screen
|
||||
clear
|
||||
|
||||
# Building the Docker Container
|
||||
docker build . \
|
||||
-t rust-buildbot \
|
||||
-f docker/build/Dockerfile
|
Loading…
Reference in a new issue