fu7mu4’s diary

はてなダイアリーから移転しました。

Fossology 3.2 on Docker を動かす

Fossology 3.2 on Docker を動かすメモ
最近はdocker で pullするときにユーザー名(メールアドレスではない)でログインしておく必要がある

docker login

Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (fu7mu4@gmail.com): fu7mu4
Password:
Login Succeeded

docker run -p 8081:80 fossology/fossology

Unable to find image 'fossology/fossology:latest' locally
latest: Pulling from fossology/fossology
9f0706ba7422: Pull complete
b9b4fb70557b: Pull complete
2d36a70f53cc: Pull complete
70f93e1b380b: Pull complete
63af819de32d: Pull complete
0e955932a6c9: Pull complete
4d293e85138a: Pull complete
8ea67bde02d9: Pull complete
33db9b7fb168: Pull complete
920e133f7528: Pull complete
50c0f397067e: Pull complete
Digest: sha256:6ae6fbf6ca2dffad2a0ed4be269225b26cef458f1a4baf58a8b016bfa206903e
Status: Downloaded newer image for fossology/fossology:latest

****************************************************

WARNING: No database host was set and therefore the
internal database without persistency will be used.
THIS IS NOT RECOMENDED FOR PRODUCTIVE USE!

****************************************************

Starting PostgreSQL 9.4 database server: main.

Running postinstall for everything ***
Running postinstall for common actions***
Creating user and group ***

NOTE: group 'fossy' created
Adding system user `fossy' (UID 107) ...
Adding new user `fossy' (UID 107) with group `fossy' ...
Creating home directory `/home/fossy' ...
NOTE: user 'fossy' created

Making sure needed dirs exist with right ownership/permissions ***

NOTE: Running the PostgreSQL vacuum and analyze command can result in a large database performance improvement. We suggest that you either configure postgres to run its autovacuum and autoanalyze daemons, or maintagent -D in a cron job, or run Admin > Maintenance on a regular basis. Admin > Dashboard will show you the last time vacuum and analyze have been run.

Running postinstall for web-only actions***
Setting up the FOSSology database ***
Initializing database ***

CREATE ROLE
SET
SET
SET
CREATE DATABASE
ALTER DATABASE
You are now connected to database "fossology" as user "postgres".
ERROR: language "plpgsql" already exists
SET
SET
SET
COMMENT
SET
SET
SET

update the database and license_ref table ***

Old release was 0
Applying database functions
DB schema has been updated for fossology.
Database schema update completed successfully.
fresh install, import licenseref.sql
Creating default user
Adding link to real parent in uploadtree table
Database connectivity is good.

Setting up scheduler ***
Setting up the web interface ***

NOTE: Adding user www-data to group fossy
Reloading web server: apache2 failed!
Apache2 is not running ... (warning).
FOSSology postinstall complete, but sure to complete the remaining
steps in the INSTALL instructions.

Fossology initialisation complete; Starting up...

Starting FOSSology job scheduler: fossology.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message

で ブラウザで http://localhost:8081/repo/ を開く。アカウントはfossy でパスワードはfossy