Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Musicbrainz docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
Musicbrainz docker
Commits
e42a4bec
Commit
e42a4bec
authored
6 years ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
initial commit
parents
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+71
-0
71 additions, 0 deletions
Dockerfile
start.sh
+6
-0
6 additions, 0 deletions
start.sh
with
77 additions
and
0 deletions
Dockerfile
0 → 100644
+
71
−
0
View file @
e42a4bec
FROM
alpine:3.6
AS
build
MAINTAINER
Jan Grewe <jan@faked.org>
# build packages
RUN
apk update
&&
\
apk add
--virtual
=
build-dependencies
\
bash
\
db-dev
\
expat-dev
\
g++
\
gcc
\
icu-dev
\
libxml2-dev
\
make
\
perl-dev
# runtime packages
RUN
apk add
--no-cache
\
bzip2
\
curl
\
db
\
expat
\
git
\
icu-libs
\
nodejs
\
patch
\
perl
\
perl-crypt-rijndael
\
perl-dbd-pg
\
perl-db_file
\
perl-net-ssleay
\
postgresql-client
\
postgresql-dev
\
procps
\
redis
\
tar
\
wget
\
yarn
ARG
MB_VERSION="v-2019-01-22"
RUN
git clone
--depth
1
--branch
${
MB_VERSION
}
https://github.com/metabrainz/musicbrainz-server.git /opt/musicbrainz
RUN
cp
/opt/musicbrainz/lib/DBDefs.pm.sample /opt/musicbrainz/lib/DBDefs.pm
WORKDIR
/opt/musicbrainz
RUN
curl
-Ls
http://cpanmin.us | perl - App::cpanminus
RUN
cpanm
--installdeps
--notest
.
RUN
cpanm
--notest
\
Cache::Memcached::Fast
\
Cache::Memory
\
Catalyst::Plugin::Cache::HTTP
\
Catalyst::Plugin::StackTrace
\
Digest::MD5::File
\
FCGI
\
FCGI::ProcManager
\
Plack::Handler::Starlet
\
Plack::Middleware::Debug::Base
\
Server::Starter
\
Starlet
\
Starlet::Server
\
Term::Size::Any
RUN
yarn
install
--ignore-engines
&&
\
yarn cache clean
RUN
./script/compile_resources.sh
ADD
start.sh .
CMD
["/bin/bash", "/opt/musicbrainz/start.sh"]
This diff is collapsed.
Click to expand it.
start.sh
0 → 100644
+
6
−
0
View file @
e42a4bec
#!/bin/bash
./script/dbdefs_to_js.pl
export
MUSICBRAINZ_USE_PROXY
=
1
/usr/local/bin/plackup
-Ilib
-E
deployment
--keep-stderr
=
1
>
/dev/stdout 2>&1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment