Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .config/README.md

This file was deleted.

7 changes: 4 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
RUN useradd --create-home --shell /bin/bash $USER

USER $USER
ENV PATH "$PATH:/home/$USER/.local/bin"
WORKDIR /home/$USER/admin
RUN mkdir -p /home/$USER/.config/compiler-admin
ENV PATH="$PATH:/home/$USER/.local/bin:/home/$USER/.config/compiler-admin/gyb"
WORKDIR /home/$USER/compiler-admin

RUN python -m pip install --upgrade pip

Expand All @@ -20,7 +21,7 @@ COPY pyproject.toml pyproject.toml
RUN pip install -e .[dev,test]

USER root
RUN chown -R $USER /home/$USER
RUN chown -R $USER:$USER /home/$USER
USER $USER

CMD ["sleep", "infinity"]
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "compilerla/admin",
"dockerComposeFile": ["../compose.yaml"],
"service": "dev",
"workspaceFolder": "/home/compiler/admin",
"workspaceFolder": "/home/compiler/compiler-admin",
"postAttachCommand": ["/bin/bash", ".devcontainer/postAttach.sh"],
"customizations": {
"vscode": {
Expand Down
2 changes: 0 additions & 2 deletions .devcontainer/postAttach.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
set -eu

pre-commit install --install-hooks

echo -e "\nexport PATH=$PATH:/home/compiler/admin/.config/gyb" >> ~/.bashrc
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
GYB-GMail-Backup-*/
__pycache__
.config/*
!.config/README.md
.coverage
.downloads
.env
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ options:
## Getting started

```bash
mkdir -p ~/.config/compiler-admin

git clone https://github.com/compilerla/compiler-admin.git

cd compiler-admin
Expand Down
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ services:
- .env
entrypoint: sleep infinity
volumes:
- .:/home/compiler/admin
- ./.config:/home/compiler/.config/compiler-admin
- .:/home/compiler/compiler-admin
- ~/.config/compiler-admin:/home/compiler/.config/compiler-admin
- ./.downloads:/home/compiler/Downloads
Loading