Commit dbac7f16 authored by 神楽坂玲奈's avatar 神楽坂玲奈

docker

parent 39954c1f
[submodule "magicseteditor"]
path = magicseteditor
url = https://github.com/mycard/magicseteditor.git
branch = win32
FROM ruby:onbuild FROM ruby
CMD ["./Server.rb"]
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y wine32 xvfb
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
RUN bundle install
COPY . /usr/src/app
ENV DISPLAY=:0.0
CMD ["./entrypoint.sh"]
...@@ -3,4 +3,4 @@ source 'https://rubygems.org' ...@@ -3,4 +3,4 @@ source 'https://rubygems.org'
gem 'sinatra' gem 'sinatra'
gem 'json' gem 'json'
gem 'sqlite3' gem 'sqlite3'
gem 'zip' gem 'rubyzip'
...@@ -5,22 +5,22 @@ GEM ...@@ -5,22 +5,22 @@ GEM
rack (1.6.4) rack (1.6.4)
rack-protection (1.5.3) rack-protection (1.5.3)
rack rack
rubyzip (1.2.0)
sinatra (1.4.7) sinatra (1.4.7)
rack (~> 1.5) rack (~> 1.5)
rack-protection (~> 1.4) rack-protection (~> 1.4)
tilt (>= 1.3, < 3) tilt (>= 1.3, < 3)
sqlite3 (1.3.11) sqlite3 (1.3.11)
tilt (2.0.2) tilt (2.0.2)
zip (2.0.2)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
json json
rubyzip
sinatra sinatra
sqlite3 sqlite3
zip
BUNDLED WITH BUNDLED WITH
1.11.2 1.11.2
...@@ -24,7 +24,7 @@ module Global ...@@ -24,7 +24,7 @@ module Global
self.records_name = "records.json" self.records_name = "records.json"
self.answer_path = "ygopro-images-%s" self.answer_path = "ygopro-images-%s"
self.answer_uri = "https://github.com/mycard/ygo-images.git" self.answer_uri = "https://github.com/mycard/ygo-images.git"
self.mse_path = "MagicSetEditor2" self.mse_path = "magicseteditor"
self.sql_fix_name = "fix.sql" self.sql_fix_name = "fix.sql"
self.mse_set_path = "mse-sets" self.mse_set_path = "mse-sets"
module_function module_function
...@@ -56,4 +56,4 @@ module Global ...@@ -56,4 +56,4 @@ module Global
end end
# 建立 mse-sets 文件夹 # 建立 mse-sets 文件夹
Dir.mkdir Global.mse_set_path unless File.directory? Global.mse_set_path Dir.mkdir Global.mse_set_path unless File.directory? Global.mse_set_path
\ No newline at end of file
#!/bin/bash
Xvfb :0 &
ruby Server.rb
Subproject commit 725ba01ca666882725d0dbb552ca4caed9e3c9c4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment