-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ersilia Pack Dockerization Clean up (#1274)
* WIP * Rework dockerfiles to build ersilia pack from source and not through a git url; make it easy to copy the necessary files from bundle when ersilia runs a dockerized model
- Loading branch information
1 parent
24336e5
commit f96af14
Showing
11 changed files
with
142 additions
and
71 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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM python:version | ||
RUN apt-get update && \ | ||
apt-get install git -y && \ | ||
python -m pip install git+https://github.com/ersilia-os/ersilia-pack.git | ||
COPY docker-entrypoint.sh /root/docker-entrypoint.sh | ||
RUN chmod + /root/docker-entrypoint.sh | ||
WORKDIR /root | ||
COPY . /ersilia-pack | ||
RUN apt-get clean && apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* && cd /ersilia-pack && pip install -e . && \ | ||
mv /ersilia-pack/docker-entrypoint.sh /root/docker-entrypoint.sh && \ | ||
chmod + /root/docker-entrypoint.sh | ||
EXPOSE 80 | ||
ENTRYPOINT [ "sh", "/root/docker-entrypoint.sh"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM ersiliapack-VERSION:latest | ||
FROM ersiliaos/ersiliapack-VERSION:latest | ||
ARG MODEL=eos_identifier | ||
ENV MODEL=$MODEL | ||
WORKDIR /root | ||
COPY ./$MODEL /root/$MODEL | ||
RUN mkdir /root/bundles && ersilia_model_pack --repo_path $MODEL --bundles_repo_path /root/bundles && \ | ||
rm -rf /root/$MODEL && rm -rf /root/.cache | ||
rm -rf /root/$MODEL && rm -rf /root/.cache && \ | ||
cp /root/bundles/$MODEL/*/information.json /root/information.json && \ | ||
cp /root/bundles/$MODEL/*/api_schema.json /root/api_schema.json && \ | ||
cp /root/bundles/$MODEL/*/status.json /root/status.json |
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
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
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