Skip to content

Docker Support #20

@noah-goodrich

Description

@noah-goodrich

For local development, it is often preferred to be able to run services (like leo) in isolation from the developer's host machine by using Docker containers.

This sample Dockerfile is doing the trick for my current development needs:

FROM node:8-slim

RUN apt-get update \
    && apt-get install -y \
        screen \
        vim \
        groff \
        less \
        python-dev \
        python-pip \
        libssl-dev \
    && pip install --upgrade pip \
    && pip install awscli \
    && yarn global add leo-cli \
    && yarn global add mocha
    && mkdir /opt/leo-bus

VOLUME /opt/leo-bus

WORKDIR /opt/leo-bus

ENTRYPOINT /bin/bash

Originally I set up the docker image to build node6.10 but based on feedback from your team, switched to node8.

What would be ideal is to not only have this added as a Dockerfile into the nodejs sdk, but to then have official published docker images available for the community in the docker store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions