Skip to content

Commit

Permalink
Auto-fill database on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
thmhoag committed Nov 30, 2019
1 parent 6b5190e commit 8d12a1e
Show file tree
Hide file tree
Showing 4 changed files with 13,580 additions and 15 deletions.
20 changes: 5 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
FROM ubuntu:16.04
FROM swgemu:test

RUN apt-get update
RUN apt-get install -y build-essential \
libmysqlclient-dev \
liblua5.3-dev \
libdb5.3-dev \
libssl-dev \
cmake \
git \
default-jre
COPY scripts /app/scripts
RUN ln -s /app/scripts/swgemu.sh /usr/bin/swgemu

WORKDIR /app
COPY . .

WORKDIR /app/MMOCoreORB
RUN make -j8
WORKDIR /app/MMOCoreORB/bin
RUN /app/scripts/run.sh
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
- MYSQL_PASSWORD=swgemu-sql
volumes:
- mysql:/var/lib/mysql
- ${PWD}/sql:/docker-entrypoint-initdb.d
restart: always

swgemu:
Expand Down
Loading

0 comments on commit 8d12a1e

Please sign in to comment.