FROM debian:jessie ENV VERSION 2.26 RUN apt-get update -q RUN apt-get install -qy curl build-essential RUN mkdir /src WORKDIR /src RUN curl https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/util-linux-$VERSION.tar.gz \ | tar -zxf- RUN ln -s util-linux-$VERSION util-linux WORKDIR /src/util-linux RUN ./configure --without-ncurses RUN make LDFLAGS=-all-static nsenter RUN cp nsenter / ADD docker-enter /docker-enter ADD installer /installer CMD /installer # Now build the importenv helper WORKDIR /src ADD importenv.c /src/importenv.c RUN make LDFLAGS=-static CFLAGS=-Wall importenv RUN cp importenv /
$ docker-compose run --rm ember new ember-sample ... Installed packages for tooling via npm. Installed browser packages via Bower. Successfully initialized git.
$ docker-compose run --rm ember generate model user version: 0.1.0 installing create app/models/user.js installing create tests/unit/models/user-test.js Removing embersample_ember_run_1...
server用のコンテナを起動してブラウザから確認します。
$ docker-compose up server Creating embersample_server_1... Attaching to embersample_server_1 server_1 | version: 0.1.0 server_1 | Livereload server on port 35729 server_1 | Serving on http://0.0.0.0:4200 server_1 | server_1 | Build successful - 1213ms. server_1 | server_1 | Slowest Trees | Total server_1 | -------------------------------+---------------- server_1 | Concat | 496ms server_1 | TemplateCompiler | 139ms server_1 | ES6Concatenator | 84ms server_1 | JSHint - App | 73ms server_1 |