|
@@ -7,15 +7,15 @@ There are four ways you can install imgproxy:
|
|
imgproxy can (and should) be used as a standalone application inside a Docker container. Just pull the official image from Docker Hub:
|
|
imgproxy can (and should) be used as a standalone application inside a Docker container. Just pull the official image from Docker Hub:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ docker pull darthsim/imgproxy:latest
|
|
|
|
-$ docker run -p 8080:8080 -it darthsim/imgproxy
|
|
|
|
|
|
+docker pull darthsim/imgproxy:latest
|
|
|
|
+docker run -p 8080:8080 -it darthsim/imgproxy
|
|
```
|
|
```
|
|
|
|
|
|
You can also build your own image. imgproxy is ready to be dockerized, plug and play:
|
|
You can also build your own image. imgproxy is ready to be dockerized, plug and play:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ docker build -t imgproxy .
|
|
|
|
-$ docker run -p 8080:8080 -it imgproxy
|
|
|
|
|
|
+docker build -t imgproxy .
|
|
|
|
+docker run -p 8080:8080 -it imgproxy
|
|
```
|
|
```
|
|
|
|
|
|
## Heroku
|
|
## Heroku
|
|
@@ -27,10 +27,10 @@ imgproxy can be deployed to Heroku with a click of a button:
|
|
However, you can do it manually with a few steps:
|
|
However, you can do it manually with a few steps:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ git clone https://github.com/imgproxy/imgproxy.git && cd imgproxy
|
|
|
|
-$ heroku create your-application
|
|
|
|
-$ heroku stack:set container
|
|
|
|
-$ git push heroku master
|
|
|
|
|
|
+git clone https://github.com/imgproxy/imgproxy.git && cd imgproxy
|
|
|
|
+heroku create your-application
|
|
|
|
+heroku stack:set container
|
|
|
|
+git push heroku master
|
|
```
|
|
```
|
|
|
|
|
|
## Packages
|
|
## Packages
|
|
@@ -48,9 +48,9 @@ First, install [libvips](https://github.com/libvips/libvips).
|
|
Ubuntu apt repository contains a pretty old version of libvips. You can use PPA with more recent version of libvips:
|
|
Ubuntu apt repository contains a pretty old version of libvips. You can use PPA with more recent version of libvips:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ sudo add-apt-repository ppa:dhor/myway
|
|
|
|
-$ sudo apt-get update
|
|
|
|
-$ sudo apt-get install libvips-dev
|
|
|
|
|
|
+sudo add-apt-repository ppa:dhor/myway
|
|
|
|
+sudo apt-get update
|
|
|
|
+sudo apt-get install libvips-dev
|
|
```
|
|
```
|
|
|
|
|
|
But if you want to use all the features of imgproxy, it's recommended to build libvips from the source: [https://github.com/libvips/ libvips/wiki/Build-for-Ubuntu](https://github.com/libvips/libvips/wiki/Build-for-Ubuntu)
|
|
But if you want to use all the features of imgproxy, it's recommended to build libvips from the source: [https://github.com/libvips/ libvips/wiki/Build-for-Ubuntu](https://github.com/libvips/libvips/wiki/Build-for-Ubuntu)
|
|
@@ -58,22 +58,22 @@ But if you want to use all the features of imgproxy, it's recommended to build l
|
|
Next, install the latest Go:
|
|
Next, install the latest Go:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ sudo add-apt-repository ppa:longsleep/golang-backports
|
|
|
|
-$ sudo apt-get update
|
|
|
|
-$ sudo apt-get install golang-go
|
|
|
|
|
|
+sudo add-apt-repository ppa:longsleep/golang-backports
|
|
|
|
+sudo apt-get update
|
|
|
|
+sudo apt-get install golang-go
|
|
```
|
|
```
|
|
|
|
|
|
And finally, install imgproxy itself:
|
|
And finally, install imgproxy itself:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ CGO_LDFLAGS_ALLOW="-s|-w" go get -f -u github.com/imgproxy/imgproxy
|
|
|
|
|
|
+CGO_LDFLAGS_ALLOW="-s|-w" go get -f -u github.com/imgproxy/imgproxy
|
|
```
|
|
```
|
|
|
|
|
|
### macOS + Homebrew
|
|
### macOS + Homebrew
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ brew install vips go
|
|
|
|
-$ PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig" \
|
|
|
|
|
|
+brew install vips go
|
|
|
|
+PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig" \
|
|
CGO_LDFLAGS_ALLOW="-s|-w" \
|
|
CGO_LDFLAGS_ALLOW="-s|-w" \
|
|
CGO_CFLAGS_ALLOW="-Xpreprocessor" \
|
|
CGO_CFLAGS_ALLOW="-Xpreprocessor" \
|
|
go get -f -u github.com/imgproxy/imgproxy
|
|
go get -f -u github.com/imgproxy/imgproxy
|