Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
removing empty continuation line
Browse files Browse the repository at this point in the history
and clean up
  • Loading branch information
Skylar Lee committed Oct 4, 2017
1 parent 67d6176 commit 02fc2ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,21 @@ ENV LIBVIPS_VERSION_MINOR 5
ENV LIBVIPS_VERSION_PATCH 8
ENV LIBVIPS_VERSION $LIBVIPS_VERSION_MAJOR.$LIBVIPS_VERSION_MINOR.$LIBVIPS_VERSION_PATCH

# Install dependencies
# Install dependencies and vips
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
automake build-essential curl \
gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-turbo8-dev libpng12-dev \
libwebp-dev libtiff5-dev libgif-dev libexif-dev libxml2-dev libpoppler-glib-dev \
swig libmagickwand-dev libpango1.0-dev libmatio-dev libopenslide-dev libcfitsio3-dev \
libgsf-1-dev fftw3-dev liborc-0.4-dev librsvg2-dev && \

# Build libvips
cd /tmp && \
curl -L https://github.com/jcupitt/libvips/releases/download/v$LIBVIPS_VERSION/vips-$LIBVIPS_VERSION.tar.gz | tar xz && \
cd /tmp/vips-$LIBVIPS_VERSION && \
./configure --enable-debug=no --without-python $1 && \
make && \
make install && \
ldconfig && \

# Clean up
apt-get remove -y curl automake build-essential && \
apt-get autoremove -y && \
apt-get autoclean && \
Expand Down
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

brew install go
brew install go@1.9
brew tap homebrew/science
brew install vips
if [ -z $GOPATH ]; then
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const (
)

func main() {
bimg.Initialize()
log.SetFlags(0) // hide timestamps from Go logs

parseFlags()
Expand Down Expand Up @@ -181,7 +180,7 @@ func computeHexMD5(data []byte) string {
}

func generateThumbnail(w http.ResponseWriter, rmethod, rpath string, sourceURL string, width, height uint) {
log.Printf("generating FYEAH %s", rpath)
log.Printf("generating %s", rpath)
resp, err := httpClient.Get(sourceURL)
if err != nil {
http.Error(w, err.Error(), 500)
Expand Down

0 comments on commit 02fc2ee

Please sign in to comment.