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

Update entrypoint.sh to allow for user management via environment variables #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Derekt2
Copy link

@Derekt2 Derekt2 commented Feb 15, 2022

Allows user management purely from environment variables. This allows anyone deploying the server the ability to add or remove users easily. If you unset the environment variable and redeploy, it removes all users and adds admin if it doesn't already exists so there will always be at least one user.

image

Allows user management purely from environment variables. This allows anyone deploying the server the ability to add or remove users easily.
@Derekt2
Copy link
Author

Derekt2 commented Feb 15, 2022

can be tested easily with this docker-compose file, then verifying by connecting to localhost.

version: "3"

services:
  server:
    build:
      context: .
      dockerfile: Dockerfile
    command: server
    environment:
      - GHIDRA_IP=127.0.0.1
      - GHIDRA_USERS=admin user1 user2
    volumes:
      - ./repos:/repos:rw
    ports:
      - 13100:13100
      - 13101:13101
      - 13102:13102

@Derekt2 Derekt2 changed the title Update entrypoint.sh Update entrypoint.sh to allow for user management via environment variables Feb 15, 2022
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

Successfully merging this pull request may close these issues.

1 participant