This repository was archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused "brie slice", bye bye brie * Use responsive-loader for responsive images * Ignore flow errors in sharp's json files * Optimise pngs & gifs using imagemin-webpack-plugin * Install libpng in CI docker container * Also install libpng-dev in CI docker image * Install zlib in CI docker image * Use jessie slim as the base for the CI build image Both flow and imagemin require glibc libraries, but alpine linux uses musl c to save disk space. Since installing glibc and a load of libraries kinda defeats the point of using alpine linux (smaller image size) and is a pain to maintain I've just switched over to debian jessie slim. * Increment CI cache version for node modules Due to switching from alpine linux to debian some of the cached files depend on muslc not glibc * Install additional dependencies in CI build image * Change shebangs in shell scripts to /bin/bash The command `set -euo pipefail` is bash specifc and errors on other shells
- Loading branch information
Showing
28 changed files
with
515 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,17 @@ | ||
FROM node:8.15.1-alpine | ||
|
||
# Alpine Linux includes musl libc, but Flow is linked against GNU libc, so we need to install it. | ||
# See https://github.com/sgerrand/alpine-pkg-glibc | ||
ENV GLIBC_VERSION 2.25-r0 | ||
RUN apk add --no-cache ca-certificates && \ | ||
apk add --no-cache --virtual .build-deps-glibc \ | ||
curl \ | ||
&& cd /etc/apk/keys \ | ||
&& curl -fsSLO --compressed https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \ | ||
&& cd /tmp \ | ||
&& curl -fsSLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-$GLIBC_VERSION.apk \ | ||
&& apk add --no-cache glibc-$GLIBC_VERSION.apk \ | ||
&& rm glibc-$GLIBC_VERSION.apk /etc/apk/keys/sgerrand.rsa.pub \ | ||
&& apk del --no-cache .build-deps-glibc | ||
|
||
RUN apk add --no-cache make git openssh zip curl | ||
FROM node:8.15.1-jessie-slim | ||
|
||
# Install aws cli | ||
RUN apk add --no-cache \ | ||
python \ | ||
py-pip \ | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
groff \ | ||
less \ | ||
mailcap \ | ||
&& \ | ||
pip install --upgrade awscli==1.14.5 s3cmd==2.0.1 python-magic | ||
make \ | ||
python-pip \ | ||
zip \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip install --upgrade pip \ | ||
&& pip install --upgrade awscli==1.14.5 s3cmd==2.0.1 python-magic | ||
|
||
# Install code climate reporter | ||
RUN curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
RUN chmod +x ./cc-test-reporter | ||
|
||
RUN apk -v --purge del py-pip | ||
RUN curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter \ | ||
&& chmod +x ./cc-test-reporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @flow | ||
|
||
// A stub for the objects produced by the responsive-loader for webpack: https://github.com/herrstucki/responsive-loader | ||
|
||
declare module.exports: {| | ||
src: string, | ||
srcSet: string, | ||
toString(): string, | ||
height: number, | ||
width: number, | ||
placeholder: ?string, | ||
|}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.