Code Monkey home page Code Monkey logo

gn3docker's Introduction

docker + geonetwork 3

This repository contains the docker and compose configuration files required to build a basic geonetwork 3 instance.

pre-requisites

Install a recent Docker version:

sudo apt-get remove docker.io
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker

Install Compose:

sudo -i
curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
exit

build & run

Run the stack with:

cd ~/gn3docker && docker-compose up

Register the IP of the front server in your host machine with this one-liner:

sudo sed -i '/geonetwork.mydomain.org/d' /etc/hosts && \
sudo sh -c "echo `docker inspect --format {{.NetworkSettings.IPAddress}} gn3docker_geonetwork_1` geonetwork.mydomain.org >> /etc/hosts"

Open http://geonetwork.mydomain.org:8080/geonetwork/ in your browser and voila !
Login with admin / admin.

Once you're done with it, you can stop the containers with CTRL + C

customizing the images

In case you make changes to the Dockerfiles, and before running again docker-compose up, remember you have to:

  • stop the containers with CTRL + C
  • remove the containers with docker-compose rm
  • remove the previous images with eg docker rmi -f gn3docker_geonetwork (in case you modified geonetwork/Dockerfile)

gn3docker's People

Contributors

fvanderbiest avatar

Watchers

 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.