Sha256: 2a4a09070e0ccb273693f6c790a2178c37bdaa8e87c898d98b640658673874d9
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
FROM <%= from %> USER root RUN useradd -m -U -d <%= CIDE_DIR %> cide # Install system build dependencies here <% as_root.each do |cmd| -%> RUN <%= cmd %> <% end -%> # Common ENV HOME <%= CIDE_DIR %> WORKDIR <%= CIDE_SRC_DIR %> # SSH config <% if use_ssh -%> ADD ssh_config <%= File.expand_path('config', CIDE_SSH_DIR) %> RUN chmod 400 <%= File.expand_path('config', CIDE_SSH_DIR) %> ADD <%= TEMP_SSH_KEY %> <%= File.expand_path('id_rsa', CIDE_SSH_DIR) %> RUN chmod 400 <%= File.expand_path('id_rsa', CIDE_SSH_DIR) %> RUN chmod 755 <%= CIDE_SSH_DIR %> RUN chown -R cide:cide <%= CIDE_DIR %> <% end %> # Before <% if before['run'] -%> <% before['forward_env'].to_a.each do |key| -%> ENV <%= key %> <%= ENV[key] %> <% end %> <% before['add'].to_a.each do |file| -%> ADD <%= file %> <%= File.expand_path(file, CIDE_SRC_DIR) %> <% end %> RUN chown -R cide:cide <%= CIDE_DIR %> USER cide RUN <%= before['run'] %> USER root <% end -%> # Add project data ADD . <%= CIDE_SRC_DIR %> RUN chown -R cide:cide <%= CIDE_DIR %> # ENV <% forward_env.to_a.each do |key| -%> ENV <%= key %> <%= ENV[key] %> <% end %> # Test ! USER cide RUN <%= run %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cide-0.1.1 | lib/cide_template.erb |
cide-0.1.0 | lib/cide_template.erb |