This ruby image is built around the idea that it does not contain the site itself, rather the site will be mounted to the home/site/wwwroot directory. The site is assumed to have packaged gems in the vendor/bundle folder and gems cached in vendor/cache. These steps are taken care of in Kudu during deployment. In app service, the site exists on a shared volume and is mounted to into the container on each worker.
These app settings are checked for and honored in ruby site deployment on app service.
development,productionWhen a site is deployed to App Service using git, the Kudu site (appsvc/kudu:1.4) will run a series of steps on the site to make it deployment ready.
bundle clean to remove any changed/unnecessary gemsbundle install --path "vendor/bundle" to install gems to vendor folder. $OPTIONS will turn into any --without parameters.bundle package to package gems into vendor/cache folderbundle exec rake --trace assets:precompileIf you look at the startup.sh file you will see the steps taken when the site container starts.
bundle check in vendor/bundle to make sure all dependencies are satisfied, if not, container fails to start (this is because gems shouldn't be installed on site start, only in deployment. So if check fails, run deployment again or install gems locally and directly drop them into the vendor folder.bundle install --local --deployment just in case. If a gem doesn't exist then it will try to install the gem from the vendor/cache folder but won't try to download from the "source" defined in Gemfile.rails server -e $RAILS_ENV, otherwise run $APP_COMMAND_LINE to start the server.A few "quick start" tutorials will be available to help you develop using our service.
rails + bootstrap (serving static assets + debugging)
In your site contents directory (you can access via ftp or kudu/scm site), look for LogFiles/docker and all docker output will be sent to those files. Feel free to give feedback on any container issues, this image is still being developed.
Content type
Image
Digest
Size
189.6 MB
Last updated
over 9 years ago
docker pull appsvc/rubybase:2.3.3