-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix seek error thrown when creating read stream in Node 8
Early Node 8 versions have a bug that force a seek upon creation of a read stream. The workaround is to pass the file descriptor directly. See: nodejs/node#19240 Change-Type: patch
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
File renamed without changes.
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,29 @@ | ||
FROM resin/intel-nuc-node:8 | ||
|
||
VOLUME /var/lib/docker | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y aufs-tools rsync iptables \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV DOCKER_VERSION 1.11.2 | ||
RUN wget -q -O /tmp/docker-${DOCKER_VERSION}.tgz https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz \ | ||
&& tar xvfz /tmp/docker-${DOCKER_VERSION}.tgz -C /tmp \ | ||
&& cp -r /tmp/docker/* /usr/bin/ \ | ||
&& rm -rf /tmp/docker \ | ||
&& chmod +x /usr/bin/docker* | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package.json /usr/src/app/ | ||
|
||
RUN npm install --unsafe-perm && npm cache clean | ||
|
||
COPY . /usr/src/app | ||
|
||
COPY test/services/ /etc/systemd/system/ | ||
|
||
ENV INITSYSTEM on | ||
|
||
RUN systemctl enable docker | ||
CMD docker info |
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