Skip to content

Commit d65e69b

Browse files
author
Rub21
committed
Fix platform issues with ruby in web container
1 parent feed060 commit d65e69b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

images/web/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ RUN apache2ctl configtest
188188
# Set Permissions for www-data
189189
RUN chown -R www-data: /var/www
190190

191-
# Script to start the app
192-
ADD start.sh $workdir/start.sh
193-
194191
# Clean all installed gems for Ruby version
195192
RUN gem pristine --all
196193

194+
# Script to start the app
195+
ADD start.sh $workdir/start.sh
196+
197197
CMD $workdir/start.sh

images/web/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ production:
2121
# # Set up iD key
2222
# sed -i -e 's/id-key-to-be-replaced/'$OSM_id_key'/g' $workdir/config/application.yml
2323

24-
# Loading dynamically-linked for ffi libraries
25-
gem pristine ffi
24+
# Fix issues with platform
25+
bundle config force_ruby_platform true
2626

2727
# Check if DB is already up
2828
flag=true

0 commit comments

Comments
 (0)