Skip to content

Commit

Permalink
Changes for development on M1 Macs
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Jan 25, 2022
1 parent 36a949c commit 0ff9934
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
build:
context: .
dockerfile: ./docker/Dockerfile
image: h2o-python:0.58
image: h2o-python:0.59
tty: true
command: bash
environment:
Expand Down
8 changes: 3 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ ENV LANG=C.UTF-8 \

RUN apt-get update && apt-get install -y nano postgresql-client

ARG BUILDARCH

# pin node version -- see https://github.com/nodesource/distributions/issues/33
RUN curl -o nodejs.deb https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.13.1-1nodesource1_amd64.deb \
RUN curl -o nodejs.deb https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.13.1-1nodesource1_${BUILDARCH}.deb \
&& dpkg -i ./nodejs.deb \
&& rm nodejs.deb

# Install Pandoc, for export
RUN wget https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-1-amd64.deb \
&& dpkg -i pandoc-2.14.2-1-amd64.deb

RUN mkdir -p /app/web
WORKDIR /app/web

Expand Down
6 changes: 4 additions & 2 deletions docker/pandoc-lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ COPY entrypoint.sh /
RUN chmod 755 /usr/local/bin/aws-lambda-rie /entrypoint.sh
EXPOSE 8080

ARG BUILDARCH

# Install Pandoc
RUN wget https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-1-amd64.deb \
&& dpkg -i pandoc-2.14.2-1-amd64.deb
RUN wget https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-1-${BUILDARCH}.deb \
&& dpkg -i pandoc-2.14.2-1-${BUILDARCH}.deb

# Install the python requirements, including the AWS Lambda runtime interface client
COPY function/requirements.txt .
Expand Down

0 comments on commit 0ff9934

Please sign in to comment.