・Generate project in current directory? => y
・Please pick a preset: => Manually select features
・Check the features needed for your project: => Babel, Router, Linter / Formatter
・Choose a version of Vue.js that you want to start the project with => 3.x
・Use history mode for router? => y
・Pick a linter / formatter config: => ESLint with error prevention only
・Pick additional lint features: => Lint on save
・Where do you prefer placing config for Babel, ESLint, etc.? => In dedicated config files
・Save this as a preset for future projects? => n
・Pick the package manager to use when installing dependencies: => Use Yarn
FROM ubuntu:20.04
ENV TZ=Asia/Tokyo
RUN apt update
RUN apt install -y tzdata
RUN apt install -y curl git build-essential libz-dev
RUN curl -LO https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz
RUN tar xvf node-v18.13.0-linux-x64.tar.xz
RUN mv node-v18.13.0-linux-x64 /opt/node
ENV PATH /opt/node/bin:$PATH
RUN npm install -g yarn
RUN yarn global add @vue/cli
RUN mkdir -p /var/www/src
ARG workPath=/var/www/src
WORKDIR ${workPath}
・Generate project in current directory? => y
・Please pick a preset: => Manually select features
・Check the features needed for your project: => Babel, Router, Linter / Formatter
・Choose a version of Vue.js that you want to start the project with => 3.x
・Use history mode for router? => y
・Pick a linter / formatter config: => ESLint with error prevention only
・Pick additional lint features: => Lint on save
・Where do you prefer placing config for Babel, ESLint, etc.? => In dedicated config files
・Save this as a preset for future projects? => n
・Pick the package manager to use when installing dependencies: => Use Yarn
FROM ubuntu:20.04
ENV TZ=Asia/Tokyo
RUN apt update
RUN apt install -y tzdata
RUN apt install -y curl git vim build-essential libz-dev
RUN git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
ENV PATH /root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:$PATH
RUN curl -LO https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz
RUN tar xvf node-v18.13.0-linux-x64.tar.xz
RUN mv node-v18.13.0-linux-x64 /root/node
ENV PATH /root/node/bin:$PATH
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
ENV PATH /root/.yarn/bin:/root/.config/yarn/global/node_modules/.bin:$PATH
RUN git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
RUN rbenv install 3.0.5
RUN rbenv global 3.0.5
RUN gem install rails -v 6.1.5
RUN mkdir -p /var/www/src
WORKDIR /var/www/src
FROM ubuntu:20.04
ENV TZ=Asia/Tokyo
RUN apt update
RUN apt install -y tzdata
RUN apt install -y nginx
RUN apt install -y vim
COPY docker/nginx/test.conf /etc/nginx/conf.d
COPY docker/nginx/app.conf /etc/nginx/conf.d
ENTRYPOINT /usr/sbin/nginx
CMD "-g daemon off;"
class Api::V1::SamplesController < ApplicationController
def index
render json: {test: 'Railsから送信'}
end
end
FROM node:18.13.0
ENV TZ=Asia/Tokyo
RUN apt update
RUN apt install -y tzdata
RUN yarn global add @vue/cli
ARG workPath=/var/www/src
WORKDIR ${workPath}
・Generate project in current directory? => y
・Please pick a preset: => Manually select features
・Check the features needed for your project: => Babel, Router, Linter / Formatter
・Choose a version of Vue.js that you want to start the project with => 3.x
・Use history mode for router? => y
・Pick a linter / formatter config: => ESLint with error prevention only
・Pick additional lint features: => Lint on save
・Where do you prefer placing config for Babel, ESLint, etc.? => In dedicated config files
・Save this as a preset for future projects? => n
・Pick the package manager to use when installing dependencies: => Use Yarn
FROM ruby:3.0.5
ENV TZ=Asia/Tokyo
RUN apt update
RUN apt install -y tzdata curl
RUN curl -LO https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz
RUN tar xvf node-v18.13.0-linux-x64.tar.xz
RUN mv node-v18.13.0-linux-x64 /opt/node
ENV PATH /opt/node/bin:$PATH
RUN npm install -g yarn
RUN gem install rails -v 6.1.5
ARG workPath=/var/www/src
WORKDIR ${workPath}
FROM ubuntu:20.04
ENV TZ=Asia/Tokyo
RUN apt update
RUN apt install -y tzdata
RUN apt install -y nginx
RUN apt install -y vim
COPY docker/nginx/test.conf /etc/nginx/conf.d
COPY docker/nginx/app.conf /etc/nginx/conf.d
ENTRYPOINT ["/usr/sbin/nginx"]
CMD ["-g", "daemon off;"]
class Api::V1::SamplesController < ApplicationController
def index
render json: {test: 'Railsから送信'}
end
end
# SQLite. Versions 3.8.0 and up are supported.
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: mysql2
encoding: utf8mb4
pool: <%= ENV.fetch("RAILS_MAX_THREADS") {5} %>
host: <%= ENV.fetch("DATABASE_HOSTNAME", "db") %>
port: <%= ENV.fetch("DATABASE_PORT") {3306} %>
development:
<<: *default
username: <%= ENV.fetch("MYSQL_USER", "root") %>
password: <%= ENV.fetch("MYSQL_PASSWORD", "password") %>
database: workshop_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
username: <%= ENV.fetch("MYSQL_USER", "root") %>
password: <%= ENV.fetch("MYSQL_PASSWORD", "password") %>
database: workshop_test
production:
<<: *default
database: db/production.sqlite3