Git Product home page Git Product logo

docker-jetbrains-hub's Introduction

JetBrains Hub

Deprecation Notice: JetBrains now provides official Docker image for the Hub.


Attention: The image has been reworked to use Alpine instead of Ubuntu. As a consequence, the UID of the user that the application process runs under has changed from 999 (which was the default in Ubuntu) to 500. Thereby, if you mount a host directory to persist data and configs, you will need to chown -R 500:500 your local files before switching to the new version.


Hub is a system that provides centralized authentication, authorization; users, groups, permissions and project management across multiple installations of JetBrains team collaboration tools.

Version 2018.1, build 8691 (released February 21, 2018).

The image is based on Alpine 3.7 with OpenJDK JRE 8.

Persistent Data

The Hub is configured to store all data (including backups, logs and temporary files) under /var/lib/hub directory, which is also a Docker volume. In addition, /opt/hub/conf directory is used for configuration files.

There are multiple approaches to handling persistent storage with Docker. For detailed information, see Manage data in containers.

If a host directory is used, it should be writable by the application process, which runs as UID 500.

Usage

Pull the image, create a new container and start it:

docker pull esycat/jetbrains-hub
docker create --name jetbrains-hub -p 8080:8080 --restart=always esycat/jetbrains-hub
docker start jetbrains-hub

Virtual Host

Typically, we would like to run the Hub behind a lightweight HTTP server. etc/nginx contains an example virtual host configuration for Nginx.

docker-jetbrains-hub's People

Contributors

esycat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-jetbrains-hub's Issues

Images generate trouble

Default images are text on background. For example almost all avatars in this image https://www.jetbrains.com/hub/whatsnew/img/2017.4/Teams.png

 [Hub Error] Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager
 [Hub Error]    at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
 [Hub Error]    at sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:856)
 [Hub Error]    at jetbrains.jetpass.avatar.AvatarGenerator.renderImage(AvatarGenerator.kt:80)
 [Hub Error]    at jetbrains.jetpass.avatar.AvatarGenerator.generateAvatar(AvatarGenerator.kt:53)
 [Hub Error]    at jetbrains.jetpass.rest.api.avatar.AvatarResource.renderDefaultAvatar(AvatarResource.kt:90)
 [Hub Error]    at jetbrains.jetpass.rest.api.avatar.AvatarResource.getDefaultAvatar(AvatarResource.kt:34)
 [Hub Error]    at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
 [Hub Error]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [Hub Error]    at java.lang.reflect.Method.invoke(Method.java:498)
 [Hub Error]    at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
 [Hub Error]    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
 [Hub Error]    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
 [Hub Error]    at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:159)
 [Hub Error]    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
 [Hub Error]    at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
 [Hub Error]    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
 [Hub Error]    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
 [Hub Error]    at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
 [Hub Error]    ... 56 more

Error when run docker-compose up -d

Hi,
I got this error when run hub container:
[APP-WRAPPER] Failed to configure Hub: java.util.concurrent.ExecutionException: com.jetbrains.service.util.StatusException: Native random generator does not seem to have enough entropy for JetBrains Hub 2018.1 to start.
You can fix it by switching to PRNG (with -Djava.security.egd=/dev/zrandom) or by reconfiguring your operation system to provide more random bits.
My VPS:

  • Centos 7
  • MEM: 4GB
    Any suggestion?
    Thanks in advance.

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.