Sign inSign up

google85/devcontainer-react-native

By google85

Updated 3 months ago

React Native devcontainer. Includes both NodeJs and OpenJDK

Image
0

111

google85/devcontainer-react-native repository overview

React Native devcontainer

  • Node version: v18.12.0

  • OpenJDK version: v18.0.2.1

  • Registry: DockerHub

  • Source code: GitHub (private)

Compose file:
  • direct:
name: devcontainer
services:
  devcontainer:
    image: google85/devcontainer-react-native:node-18.12.0-slim-openjdk-18.0.2.1
    hostname: devcontainer
    working_dir: /home/node/workspace
    restart: unless-stopped
    user: node
    environment:
      - TZ=Europe/Bucharest
    volumes:
      - ../:/home/node/workspace
    ports:
      - 8081:8081
      - 19000:19000
      - 19001:19001
      - 19002:19002
      - 19006:19006
    extra_hosts:
      - "host.docker.internal:host-gateway"
    stdin_open: true
    tty: true

  • using custom Dockerfile based on this image:
name: devcontainer
services:
  devcontainer:
    image: devcontainer-react-native:node18-openjdk18
    build: .
    hostname: devcontainer
    working_dir: /home/node/workspace
    restart: unless-stopped
    user: node
    environment:
      - TZ=Europe/Bucharest
    volumes:
      - ../:/home/node/workspace
    ports:
      - 8081:8081
      - 19000:19000
      - 19001:19001
      - 19002:19002
      - 19006:19006
    extra_hosts:
      - "host.docker.internal:host-gateway"
    stdin_open: true
    tty: true
  • Dockerfile:
ARG NODE_VERSION=18.12.0-slim
ARG JAVA_OPENJDK_VERSION=18.0.2.1

FROM google85/devcontainer-react-native:node-${NODE_VERSION}-openjdk-${JAVA_OPENJDK_VERSION}
Usage:
  • VsCode: Open/Reopen in container

Tag summary

Content type

Image

Digest

sha256:b3700ca7b

Size

665.1 MB

Last updated

3 months ago

docker pull google85/devcontainer-react-native:node-18-slim-openjdk-18