Update VSCode dev env to match Gitpod.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-09-24 02:10:24 -05:00
parent e7065ffeb4
commit 4792acc59a
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
4 changed files with 13 additions and 35 deletions

View File

@ -4,7 +4,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04
# [Option] Install zsh
ARG INSTALL_ZSH="true"
# [Option] Upgrade OS packages to their latest versions
ARG UPGRADE_PACKAGES="false"
ARG UPGRADE_PACKAGES="true"
# [Option] Enable non-root Docker access in container
ARG ENABLE_NONROOT_DOCKER="true"
# [Option] Use the OSS Moby CLI instead of the licensed Docker CLI
@ -31,4 +31,5 @@ CMD [ "sleep", "infinity" ]
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# && apt-get -y install --no-install-recommends <your-package-list-here>

View File

@ -16,13 +16,14 @@
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-docker"
"ms-azuretools.vscode-docker",
"bmewburn.vscode-intelephense-client",
"editorconfig.editorconfig"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
80,
443
10080
],
// Use 'postCreateCommand' to run commands after the container is created.
@ -30,4 +31,4 @@
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
}

View File

@ -1,9 +1,10 @@
#!/usr/bin/env bash
cp sample.env .env
cp dev.env .env
cp azuracast.dev.env azuracast.env
cp docker-compose.sample.yml docker-compose.yml
cp .devcontainer/docker-compose.override.yml docker-compose.override.yml
cp docker-compose.cloudide.yml docker-compose.yml
docker-compose build web
docker-compose run --rm --user=azuracast web azuracast_install
docker-compose up -d
docker-compose up -d

View File

@ -1,25 +0,0 @@
services:
nginx_proxy:
volumes:
- ./util/local_ssl:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock:ro
web:
build:
context: .
volumes:
- ./util/local_ssl:/etc/nginx/certs:ro
- ${LOCAL_WORKSPACE_FOLDER}/vendor:/var/azuracast/www/vendor
- ${LOCAL_WORKSPACE_FOLDER}:/var/azuracast/www
mariadb:
ports:
- "127.0.0.1:3306:3306"
redis:
ports:
- "127.0.0.1:6379:6379"
stations:
volumes:
- ./util/local_ssl:/etc/nginx/certs