Skip to content

Commit

Permalink
RFC: remove ./docker-compose
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf committed May 29, 2023
1 parent 53c35a8 commit 2b2dbdd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ freeze: | $(PYTHON_ENV)

# tests #######################################################################
test:
./docker-compose run playwright tox $(args)
docker-compose run playwright tox $(args)

ci-test:
./docker-compose run playwright tox -e lint,py37,py38,py39,py310,py311 $(args)
docker-compose run playwright tox -e lint,py37,py38,py39,py310,py311 $(args)

lint:
./docker-compose run playwright tox -e lint $(args)
docker-compose run playwright tox -e lint $(args)

isort:
./docker-compose run playwright tox -e isort $(args)
docker-compose run playwright tox -e isort $(args)

# packaging ###################################################################
dist: | $(PYTHON_ENV)
Expand Down
7 changes: 0 additions & 7 deletions docker-compose

This file was deleted.

5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ networks:

services:
playwright:
user: ${DOCKER_USER}
user: 1000:1000

build:
context: ./
dockerfile: playwright.Dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}

networks:
- net
Expand Down
2 changes: 2 additions & 0 deletions playwright.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM mcr.microsoft.com/playwright:v1.34.0-jammy

ARG UID=1000 GID=1000

# upgrade ubuntu
RUN apt update && apt upgrade -y

Expand Down

0 comments on commit 2b2dbdd

Please sign in to comment.