1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

サーバサイドKotlin用Docker, docker-compose

Posted at

サーバサイドと書いてありますが、Android関係ないってことを表したかっただけです。
内容は最低限のものになってます。

ローカルでApache Beam SDK動かす用に雑に作ったものです。

とりあえずミニマムのexampleが一つ動いたので載せておきます。

Dockerfile

FROM gradle:5.4-jdk-alpine

ENV APP_ROOT /usr/src/app

WORKDIR $APP_ROOT

USER root

RUN apk add --no-cache curl \
    zip \
    libc6-compat \
    bash

RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2

RUN curl -s https://get.sdkman.io | bash

RUN bash -c " \
    source "$HOME/.sdkman/bin/sdkman-init.sh" && \
    sdk install kotlin 1.3.50 \
"

docker-compose.yml

docker-compose.yml
version: '2'
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - .:/usr/src/app:cached

動かす時

$ docker-compose run --rm app bash
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?