running yarn in a docker
FROM node:12.18.2-alpine3.12
RUN apk --no-cache add git
RUN apk add --no-cache bash
RUN apk add --no-cache make
RUN apk add --update alpine-sdk
ENTRYPOINT ["/bin/bash"]
docker run -d \
-it \
--name build_pg_query \
--mount type=bind,source="$(pwd)"/libpg_query,target=/pg_query \
pyramation/libpg_query
git clone https://github.com/pyramation/pg-plpgsql-query-native
cd pg-plpgsql-query-native/
yarn
Then here we go:
HEAD is now at 2eab000 Merge branch 'test' into 10-latest
compiling src/pg_query.c
cc: error: unrecognized command line option '-mmacosx-version-min=10.7'
make: *** [Makefile:81: src/pg_query.o] Error 1
ERROR: 'make' command failed
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
running
yarnin a dockerdocker run -d \ -it \ --name build_pg_query \ --mount type=bind,source="$(pwd)"/libpg_query,target=/pg_query \ pyramation/libpg_querygit clone https://github.com/pyramation/pg-plpgsql-query-native cd pg-plpgsql-query-native/ yarnThen here we go: