Added Dockerfile and build scripts for PETS2023

This commit is contained in:
onyinyang 2022-08-14 20:31:09 -04:00
parent 203e17f9fa
commit 3dde20d845
No known key found for this signature in database
GPG Key ID: 156A6435430C2036
4 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,10 @@
FROM rust:1.56.0
WORKDIR /home/lox
ADD src/ ./src/
ADD Cargo.toml Cargo.toml
ADD tests/ ./tests/tests
ADD README.md README.md
RUN cargo build
ENV SHELL=/bin/bash

View File

@ -0,0 +1,3 @@
#!/bin/bash
docker rm lox 2>&1;
docker build -t lox .

2
crates/lox-library/run-lox.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker run -it lox /bin/bash

2
crates/lox-library/stop-lox.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker stop lox