mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-16 01:57:16 +00:00
c15eec53dc
The package maintainer of the "tutor" package was kind enough to transfer ownership of the project to us. This is great, because we no longer have to use the "openedx" suffix, which is trademarked. For the time being, we keep maintaining the "tutor-openedx" package which has a 1-to-1 dependency on the "tutor" package. In the future, we expect that we will no longer push upgrades to tutor-openedx.
27 lines
986 B
Docker
27 lines
986 B
Docker
# This image is still very much a work in progress. It was tested on Linux and allows
|
|
# to run tutor from inside docker. In practice, all "tutor" commands should be replaced # by:
|
|
#
|
|
# docker run --rm -it -P \
|
|
# -v /var/run/docker.sock:/var/run/docker.sock \
|
|
# -v /opt/tutor:/opt/tutor tutor
|
|
#
|
|
# Note that this image does not come with any plugin, by default. Also, the image does
|
|
# not include the `kubectl` binary, so `k8s` commands will not work.
|
|
# Because this image is still experimental, and we are not quite sure if it's going to
|
|
# be very useful, we do not provide any usage documentation.
|
|
|
|
FROM docker.io/python:3.7-slim-stretch
|
|
|
|
# As per https://github.com/docker/compose/issues/3918
|
|
COPY --from=library/docker:19.03 /usr/local/bin/docker /usr/bin/docker
|
|
COPY --from=docker/compose:1.24.0 /usr/local/bin/docker-compose /usr/bin/docker-compose
|
|
|
|
RUN pip install tutor
|
|
RUN mkdir /opt/tutor
|
|
ENV TUTOR_ROOT /opt/tutor
|
|
|
|
EXPOSE 80
|
|
EXPOSE 443
|
|
|
|
ENTRYPOINT ["tutor"]
|