Code Monkey home page Code Monkey logo

elpmaxe-fluffy-garbanzo's Introduction

elpmaxe-fluffy-garbanzo

Example:

  • Build and run Sonatype Nexus OSS 3 with Docker.

Build

docker build ./nexus3 \
    --tag nexus3:elpmaxe \
    --force-rm \
    --no-cache \
    --pull

Persistent Data Storage

mkdir -p /opt/containers/nexus3/nexus-data
chown -R 200 /opt/containers/nexus3/nexus-data
chmod 777 /opt/containers/nexus3/nexus-data

Run

docker run \
    --publish 8081:8081 \
    --rm \
    --volume /opt/containers/nexus3/nexus-data:/nexus-data \
    --env MAX_HEAP=768m \
    nexus3:elpmaxe

The NEXUS_CONTEXT environment variable can be used to control the Nexus Context Path , passed as -Dnexus-context-path. Defaults to /.

This environment variable is used to define the URL which Nexus is accessed.

Permissions

  • Use docker exec to run a command in a running container.
docker exec \
    --interactive \
    --tty \
    $(docker ps \
      --quiet \
      --filter=ancestor=nexus3:elpmaxe) \
    /bin/bash
  • Use id inside the container to check user permissions.
[nexus@ef88954bd4e9 nexus]$ id
uid=200(nexus) gid=200(nexus) groups=200(nexus)
  • Check user inside the container has sufficient permissions to mounted volume.

elpmaxe-fluffy-garbanzo's People

Contributors

sheeeng avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.