mirror of
https://github.com/bitnami/containers.git
synced 2026-02-10 11:47:39 +08:00
21
bitnami/ruby/Dockerfile
Normal file
21
bitnami/ruby/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM bitnami/base-ubuntu:14.04-buildpack-onbuild
|
||||
MAINTAINER Bitnami <containers@bitnami.com>
|
||||
|
||||
ENV BITNAMI_APP_NAME=ruby \
|
||||
BITNAMI_APP_VERSION=2.2.2-2 \
|
||||
BITNAMI_APP_DIR=$BITNAMI_PREFIX/ruby \
|
||||
BITNAMI_APP_USER=bitnami
|
||||
ENV PATH $BITNAMI_APP_DIR/bin:$BITNAMI_PREFIX/common/bin:$PATH
|
||||
|
||||
RUN sh $BITNAMI_PREFIX/install.sh
|
||||
|
||||
USER $BITNAMI_APP_USER
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
EXPOSE 3000
|
||||
VOLUME ["/app"]
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["irb"]
|
||||
8
bitnami/ruby/entrypoint.sh
Executable file
8
bitnami/ruby/entrypoint.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
source $BITNAMI_PREFIX/bitnami-utils.sh
|
||||
|
||||
print_welcome_page
|
||||
|
||||
exec "$@"
|
||||
15
bitnami/ruby/help.txt
Normal file
15
bitnami/ruby/help.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
$BITNAMI_APP_NAME cheatsheet:
|
||||
|
||||
VOLUMES:
|
||||
/app: Default work directory for your $BITNAMI_APP_NAME application
|
||||
|
||||
PORTS:
|
||||
3000: Exposed port, please configure your app to use this port
|
||||
|
||||
COMMANDS:
|
||||
print-help: This page
|
||||
check-updates: Check if a new version of the $BITNAMI_APP_NAME image is available
|
||||
|
||||
Visit $GITHUB_PAGE for more information
|
||||
|
||||
|
||||
4
bitnami/ruby/help.yaml
Normal file
4
bitnami/ruby/help.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
volumes:
|
||||
/app: Default work directory for your $BITNAMI_APP_NAME application
|
||||
ports:
|
||||
3000: Exposed port, please configure your app to use this port
|
||||
1
bitnami/ruby/installer.run.sha256
Normal file
1
bitnami/ruby/installer.run.sha256
Normal file
@@ -0,0 +1 @@
|
||||
fd47b665add05883121288e0b828bdd9182667678b69da3a49af9b18bdeea239 /tmp/installer.run
|
||||
13
bitnami/ruby/post-install.sh
Normal file
13
bitnami/ruby/post-install.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir /app
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER /app/
|
||||
|
||||
# Symlink zlib lib for nokogiri
|
||||
ln -s /opt/bitnami/common/include/zlib.h /usr/local/include/zlib.h
|
||||
ln -s /opt/bitnami/common/include/zconf.h /usr/local/include/zconf.h
|
||||
ln -s /opt/bitnami/common/lib/libz.so /usr/lib/libz.so
|
||||
|
||||
# Symlink sqlite lib for sqlite3
|
||||
ln -s /opt/bitnami/sqlite/include/sqlite3.h /usr/local/include/sqlite3.h
|
||||
ln -s /opt/bitnami/sqlite/lib/libsqlite3.so /usr/lib/libsqlite3.so
|
||||
Reference in New Issue
Block a user