Sign inSign up

sqrt3/watchman

By sqrt3

Updated over 2 years ago

facebook watchman image

Image
0

210

sqrt3/watchman repository overview

For installing watchman to run sorbet in a vscode devcontainer

example

ARG RUBY_VERSION=3.2.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base

# Rails app lives here
WORKDIR /rails


FROM sqrt3/watchman:v4.9.0 as watchman
FROM base as development

COPY --from=watchman /usr/local/bin/watchman /usr/local/bin/
COPY --from=watchman /usr/local/lib/libcrypto.so.1.1 /usr/local/lib/

RUN ln -s /usr/local/lib/libcrypto.so.1.1 /lib/`uname -m`-linux-gnu/  \
    && mkdir -p /usr/local/var/run/watchman/

The Dockerfile of the build source

# syntax = docker/dockerfile:1

FROM ubuntu:20.04

RUN apt-get update -qq \
    && apt-get install --no-install-recommends -y \
            build-essential \
            autoconf \
            automake \
            python-dev \
            libtool \
            pkg-config \
            libssl-dev \
            git \
            sudo \
            ca-certificates \
    && rm -rf /var/lib/apt/lists /var/cache/apt/archives

RUN git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1 /tmp/watchman \
    && cd /tmp/watchman \
    && ./autogen.sh \
    && ./configure --without-python --without-pcre --enable-lenient \
    && make && make install \
    && rm -rf /tmp/watchman \
    && cp /lib/`uname -m`-linux-gnu/libcrypto.so.1.1 /usr/local/lib/

CMD ["watchman", "--version"]

Tag summary

Content type

Image

Digest

sha256:a9f30c001

Size

150.2 MB

Last updated

over 2 years ago

docker pull sqrt3/watchman:v4.9.0