Skip to content

Commit

Permalink
Rebrand to Apolo (#90)
Browse files Browse the repository at this point in the history
* Rebrand to apolo

* fix ci

* another way
  • Loading branch information
YevheniiSemendiak authored Jul 9, 2024
1 parent e4fcf71 commit 0c9e0c5
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*
!requirements
!docker-entrypoint.sh
!neuro.readme
!apolo.readme
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN chmod +x /usr/bin/ttyd
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /sbin/tini
RUN chmod +x /sbin/tini

ARG BASE_DIR=/opt/neuro/web-shell
ARG BASE_DIR=/opt/apolo/web-shell
RUN mkdir -p $BASE_DIR

COPY requirements/apt.txt requirements/python.txt $BASE_DIR/
Expand All @@ -18,14 +18,17 @@ RUN apt-get update -qq && \
python -m pip install -U pip --break-system-packages && \
pip3 install -U --no-cache-dir -r $BASE_DIR/python.txt --break-system-packages && \
apt autoclean && apt autoremove -y --purge && rm -rf /var/lib/apt/lists/* && \
rm $BASE_DIR/*
rm $BASE_DIR/* && \
ln -s $(which neuro) /usr/bin/apolo && \
ln -s $(which neuro-flow) /usr/bin/apolo-flow && \
ln -s $(which neuro-extras) /usr/bin/apolo-extras

EXPOSE 7681

ENV SHELL=/bin/bash WORKDIR=/root

COPY docker-entrypoint.sh neuro.readme $BASE_DIR/
COPY docker-entrypoint.sh apolo.readme $BASE_DIR/
RUN chmod +x $BASE_DIR/docker-entrypoint.sh

ENTRYPOINT ["/sbin/tini", "--", "/opt/neuro/web-shell/docker-entrypoint.sh"]
CMD ["ttyd", "screen", "-A", "-xR", "neuro"]
ENTRYPOINT ["/sbin/tini", "--", "/opt/apolo/web-shell/docker-entrypoint.sh"]
CMD ["ttyd", "screen", "-A", "-xR", "apolo"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build:

sanity-test:
neuro -v run --pass-config image:${IMAGE_NAME}:${IMAGE_TAG} -- bash -euo pipefail -c "\
neuro --version; \
neuro config show; \
neuro-flow --version; \
apolo --version; \
apolo config show; \
apolo-flow --version; \
"
50 changes: 50 additions & 0 deletions apolo.readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

.
-##.
-**##: +@@@
+***** : +@@@
+***** -=- =@@@@@%#@@@ .@@@.@@@@@@. :@@@@@@@: +@@@ +@@@@@@%.
+++**+ @@@@@#%@@@@@ .@@@@@#%@@@@# @@@@@#@@@@@ +@@@ @@@@@#@@@@#
.+++++= ****** =@@@- %@@@ .@@@- %@@@*@@@ .@@@*+@@@ %@@@ =@@@:
===++- =***** =@@@: %@@@ .@@@. *@@@*@@@ .@@@#+@@@ @@@@ -@@@:
.=====. =***** @@@@#:=@@@@@ .@@@@#:-@@@@%.@@@@+:*@@@@ +@@@ :@@@@-:#@@@@
.--===. .*****. %@@@@@@#@@@ .@@@-@@@@@@- #@@@@@@@* +@@@ .@@@@@@@@-
.@@@
.@@@
.@@@


Welcome to Apolo!

You are already logged in.


To list all possible commands in platform CLI and pipeline engine, run:

apolo --help
apolo-flow --help


Run a simple job:

apolo run alpine:latest echo 'Hello, World!'


Create a project, upload project files and run a Jupyter notebook:

cookiecutter gh:neuro-inc/cookiecutter-neuro-project --checkout release
cd <project directory>
apolo-flow build train
apolo-flow upload ALL
apolo-flow run jupyter --suffix trial

Open the link suggested by the last command and dive into a Jupyter notebook session.


Please don't forget to kill your jobs!

apolo-flow kill jupyter trial # kill jupyter only
apolo kill $(apolo -q ps) # kill all active jobs
apolo kill $(hostname) # kill current shell only

Visit our docs at https://docs.neu.ro for more details.
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

echo "defscrollback 10000" >> ~/.screenrc
echo "termcapinfo xterm* ti@:te@" >> ~/.screenrc
screen -T xterm-256color -Sdm neuro
screen -S neuro -p 0 -X stuff "cd $WORKDIR; cat /opt/neuro/web-shell/neuro.readme^M"
screen -T xterm-256color -Sdm apolo
screen -S apolo -p 0 -X stuff "cd $WORKDIR; cat /opt/apolo/web-shell/apolo.readme^M"

exec "$@"
44 changes: 0 additions & 44 deletions neuro.readme

This file was deleted.

4 changes: 2 additions & 2 deletions requirements/python.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cookiecutter==2.2.2
neuro-all==23.7.0
cookiecutter==2.6.0
neuro-all==24.7.0

0 comments on commit 0c9e0c5

Please # to comment.