forked from Kong/insomnia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Statically link libcurl on Linux builds (Kong#879)
* Statically linked Curl for linux builds with Docker * Test Travis Docker * Try fix blocking i/o * Try a package * Fixed linux build * Try hack * Fix icons? * Icon color * Re-enable osx builds * Remove libcurl3 dependency requirements * Update electronbuilder config
- Loading branch information
Showing
14 changed files
with
3,593 additions
and
1,398 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/node_modules | ||
**/build | ||
**/dist | ||
**/.git | ||
**/.github | ||
screenshots |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
FROM ubuntu:14.04 | ||
|
||
# Install core deps | ||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
libssl-dev \ | ||
autoconf \ | ||
libtool \ | ||
wget | ||
|
||
# Build nghttp2 from source (for Curl) | ||
RUN wget -q https://github.com/nghttp2/nghttp2/releases/download/v1.31.1/nghttp2-1.31.1.tar.gz -O ./nghttp2.tar.gz \ | ||
&& mkdir -p /src/nghttp2 \ | ||
&& tar -xvf nghttp2.tar.gz -C /src/nghttp2 --strip 1 \ | ||
&& cd /src/nghttp2 \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install \ | ||
&& ldconfig | ||
|
||
# Build Curl from source | ||
RUN wget -q https://github.com/curl/curl/releases/download/curl-7_59_0/curl-7.59.0.tar.gz -O ./curl.tar.gz \ | ||
&& mkdir -p /src/curl \ | ||
&& tar -xvf curl.tar.gz -C /src/curl --strip 1 \ | ||
&& cd /src/curl \ | ||
&& ./buildconf \ | ||
&& ./configure \ | ||
--disable-shared \ | ||
--enable-static \ | ||
--with-ssl \ | ||
--with-zlib \ | ||
--with-nghttp2 \ | ||
--enable-ipv6 \ | ||
--enable-unix-sockets \ | ||
&& make \ | ||
&& make install \ | ||
&& ldconfig | ||
|
||
# Install Node | ||
RUN wget -O- https://deb.nodesource.com/setup_8.x | bash - \ | ||
&& apt-get install -y nodejs graphicsmagick icnsutils \ | ||
&& npm install --no-save 7zip-bin-linux app-builder-bin-linux | ||
|
||
# Setup dirs | ||
ADD . /src/insomnia | ||
WORKDIR /src/insomnia | ||
VOLUME /src/insomnia/packages/insomnia-app/dist | ||
|
||
# Install root project dependencies | ||
RUN npm run bootstrap | ||
|
||
# Define build command | ||
CMD npm run app-package |
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,6 @@ | ||
version: '3' | ||
services: | ||
package: | ||
build: . | ||
volumes: | ||
- ./packages/insomnia-app/dist:/src/insomnia/packages/insomnia-app/dist |
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
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.