Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
(#100) v0.3.3:
Browse files Browse the repository at this point in the history
* (#96) Add `code-server`;
* (#97) Refactor the description;
* (#98) Fix the errors;
* (#99) Do a couple of updates.
  • Loading branch information
Pavel Sobolev committed Sep 4, 2020
2 parents fec9066 + d8d593b commit 256aa20
Show file tree
Hide file tree
Showing 15 changed files with 221 additions and 229 deletions.
102 changes: 0 additions & 102 deletions .github/scripts/VersionCheck.bash

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Get release version
run: bash .github/scripts/PublishDocker.bash
run: bash .github/scripts/publish-docker.bash

- name: Publish to Registry (with tagged image)
if: ${{ env.PUBLISH_RELEASE_VERSION == 'true' }}
Expand Down
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ services:

jobs:
include:
- stage: "Build & Check"
name: "Build Docker Image"
script: bash .github/scripts/Build.bash
- script: bash .github/scripts/VersionCheck.bash
name: "Check Version"
- name: "Build Docker Image"
script: bash .github/scripts/build.bash

notifications:
email: false
26 changes: 19 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ FROM ubuntu:20.04

# Meta information
LABEL maintainer="Pavel Sobolev (https://github.com/Paveloom)"
LABEL version="0.3.2"
LABEL version="0.3.3"
LABEL description="This is an image containing paveloom's personal development environment."
LABEL github-repository="https://github.com/paveloom-d/dev"
LABEL docker-repository="https://hub.docker.com/r/paveloom/dev"

# Copy docker scripts to the root
COPY docker-scripts /docker-scripts

# Allow their execution and let user own them
# Allow their execution
RUN chmod -R +x /docker-scripts

# Temporarily disable prompts during the build
Expand Down Expand Up @@ -65,11 +65,26 @@ RUN /docker-scripts/root/rclone/install-rclone.sh
# Install TexLive
RUN /docker-scripts/root/texlive/install-texlive.sh

# Install `code-server`
RUN /docker-scripts/root/code-server/install-code-server.sh

# Switch to the home directory of the user
WORKDIR $HOME

# Copy user scripts
COPY user-scripts Scripts

# Allow their execution and let the user own them
RUN chown -R $USER:$USER Scripts && chmod -R +x Scripts

# Switch to the created user
USER $USER

# Switch to the home directory of this user
WORKDIR $HOME
# Point to the hosts file for SSH
RUN /docker-scripts/user/ssh/point-to-the-hosts-file.sh

# Activate the configuration for Rclone
RUN /docker-scripts/user/rclone/touch-rclone-config.sh

# Install OhMyZsh
RUN /docker-scripts/user/ohmyzsh/install-ohmyzsh.sh
Expand All @@ -89,8 +104,5 @@ ENV PATH=$PATH:/home/$USER/Other/julia/bin
# Install julia
RUN /docker-scripts/user/julia/install-julia.sh

# Copy user scripts
COPY user-scripts Scripts

# Remove docker scripts
RUN sudo rm -rf /docker-scripts
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

## Run a container
run :
docker run -p 5001:22 -p 8888:8888 -p 8889:8889 -v /var/run/docker.sock:/var/run/docker.sock --name container -t -d image
docker run -p 5001:22 -p 8080:8080 -p 8888:8888 -p 8889:8889 -v /var/run/docker.sock:/var/run/docker.sock --name container -t -d image

## Enter the container
in :
Expand Down
Loading

0 comments on commit 256aa20

Please sign in to comment.