Skip to content

Commit

Permalink
UPD: Dev container config
Browse files Browse the repository at this point in the history
  • Loading branch information
nandyalu committed Aug 5, 2024
1 parent efad7d1 commit 14e0b51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
8 changes: 0 additions & 8 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ RUN npm install -g [email protected]
# Install specific version of Angular CLI
RUN npm install -g @angular/[email protected]

# Clone the repository into /app folder
# WORKDIR /app
# RUN git clone https://github.com/nandyalu/trailarr.git /app

# Install Python Packages
COPY dev-requirements.txt .
RUN python -m pip install --no-cache-dir --upgrade -r dev-requirements.txt
Expand All @@ -34,10 +30,6 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
APP_NAME="Trailarr" \
APP_VERSION="0.0.4-beta"

# Set the working directory
# RUN mkdir /app
# WORKDIR /app

# Set the python path
ENV PYTHONPATH "${PYTHONPATH}:/app/backend"

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/dev-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "Setting TimeZone to $TZ"
echo $TZ > /etc/timezone && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime

# Create data folder for storing database and other config files
mkdir -p /data/logs && chmod -R 755 /data
mkdir -p /data/logs && chown -R vscode:vscode /data

# Run Alembic migrations
echo "Running Alembic migrations"
Expand Down
7 changes: 3 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"mounts": [
"source=/var/appdata/trailarr-dev,target=/data,type=bind,consistency=cached",
"source=/media/all/Media,target=/media,type=bind,consistency=cached"
// "source=${devcontainerId},target=/app,type=volume"
],

// Set workspace folder to /app so that the project is in the right place
Expand Down Expand Up @@ -49,8 +48,8 @@
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "startup.sh",
"postCreateCommand": "sudo startup.sh",

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root"
// Run container as a non-root user. 'vscode' is the default user. To run as root, set this to 'root'.
"remoteUser": "vscode"
}

0 comments on commit 14e0b51

Please sign in to comment.