Skip to content

Commit

Permalink
debug print and dockerfile comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BeethovenKodar committed Aug 4, 2024
1 parent d78e092 commit c6b39db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
# syntax=docker/dockerfile:labs
FROM debian:bookworm-slim

# This file is used to build the Docker image for the IDeSyDe project.
# Currently, it can only run on Linux Docker but not on Windows. This is
# because the MiniZinc installation uses a linux zip.
#
# When running the container, a volume must be mounted inside the container and
# paths _inside_ the container must be used as file arguments to IDesyDe. If we
# want to input a file /a/path/file.fiodl, we must mount the directory /a/path like:
# `docker run --rm -t -v /a/path:/IDeSyde/input idesyde /IDeSyDe/input/file.fiodl`

# Set environment variables
ARG GRADLE_HOME=/opt/gradle
ARG GRADLE_VERSION=8.1-rc-1
ARG MINIZINC_VERSION=2.8.5
ARG OPENJDK_VERSION=17

# Install Java and other necessary packages
# TODO: set versions
RUN apt-get update && \
apt-get install -y build-essential wget curl apt-transport-https gnupg unzip zip git openjdk-${OPENJDK_VERSION}-jdk && \
apt-get clean
# For Java
# ENV PATH="/usr/bin:${PATH}"

# Install Cargo, build tool for the Rust parts of IDeSyDe
#! set version!!!
# TODO: set version
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:$PATH"

Expand Down
1 change: 1 addition & 0 deletions rust-orchestration/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ fn main() {
}
})
.collect();
debug!("Read and prepared {} input design model(s)", design_models.len());
for m in &design_models {
m.write_to_dir(&inputs_path, "input", "Orchestratror");
}
Expand Down

0 comments on commit c6b39db

Please sign in to comment.