Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using the original docker container, map turns back when rendering screenshot (amd64) #4

Open
kx1t opened this issue Feb 17, 2022 · 0 comments

Comments

@kx1t
Copy link
Member

kx1t commented Feb 17, 2022

When using this container -- tedder42/browser-screenshot-service, on several machines (but definitely on AMD64 VMs), screenshots are rendered like the attached photo.

No errors are displayed in the container logs:

INFO:     Uvicorn running on http://0.0.0.0:5042 (Press CTRL+C to quit)
Uvicorn running on http://0.0.0.0:5042 (Press CTRL+C to quit)
2022-02-17 23:25:08 hi.
pulling url: http://tar1090/?icao=8964A5&zoom=11&hideSidebar&hideButtons&mapDim=2.0&monochromeMarkers=ff0000&outlineColor=505050&iconScale=1.5&basemap=osm_adsbx
disabling dev-shm-usage
okay, got the basic canvas.
elapsed time: 18.69sec
INFO:     172.21.0.11:57010 - "GET /snap/8964A5 HTTP/1.1" 200 OK

This is the services section from docker-compose.yml

  screenshot:
    image: tedder42/browser-screenshot-service
    tty: true
    container_name: screenshot
    hostname: screenshot
    restart: always
    shm_size: 1gb
    environment:
      - MAP_ARGS=zoom=11&hideSidebar&hideButtons&mapDim=2.0&monochromeMarkers=ff0000&outlineColor=505050&iconScale=1.5&basemap=osm_adsbx
      - LOAD_SLEEP_TIME=15
      - BASE_URL=http://tar1090/
      - DISABLE_SHM=true
      - MAXTIME=60

This is how the container was invoked from inside another container in the same stack:

curl http://screenshot:5042/snap/8964A5 > pic.png

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant