GithubHelp home page GithubHelp logo

heavyhorst / unoconv-api Goto Github PK

View Code? Open in Web Editor NEW
28.0 6.0 17.0 2.21 MB

run unoconv as a webservice

Home Page: https://quay.io/repository/kaufmann_r/unoconv-api

License: MIT License

Go 89.18% Dockerfile 10.82%
unoconv unoconv-api

unoconv-api's People

Contributors

gdamjan avatar gdamjan-h4 avatar heavyhorst avatar rekgrpth avatar rodrigopetter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

unoconv-api's Issues

Docker build command is not working anymore

Since the merge with the TokyoFarmer fork the command docker build . is not working anymore.

Reeding the commit history, it was introduced a change that uses "go 1.11 modules support".

The Docker file is installing the default ubuntu xenial version of Go that is 1.6.2.

Whit this changes to the RUN command in the Docker file I was able to install the rigth version:

RUN \
	apt-get update && \
	DEBIAN_FRONTEND=noninteractive \
	    apt-get upgrade -y && \
		apt-get install -y \
		        locales \
			unoconv \
			gcc \
			supervisor \
			software-properties-common &&\
			add-apt-repository ppa:longsleep/golang-backports &&\
			apt-get update -y &&\
			apt-get install -y golang-go &&\
		go install github.com/HeavyHorst/unoconv-api && \
        apt-get remove -y golang-go gcc && \
	    apt-get autoremove -y && \
        apt-get clean && \
	    rm -rf /var/lib/apt/lists/

At this point I started to get a new error when the build try to execute go install github.com/HeavyHorst/unoconv-api.

go/src/github.com/HeavyHorst/unoconv-api/main.go:14:2: cannot find package "github.com/okzk/sdnotify" in any of:
        /usr/lib/go-1.11/src/github.com/okzk/sdnotify (from $GOROOT)
        /go/src/github.com/okzk/sdnotify (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/main.go:10:2: cannot find package "github.com/rs/xaccess" in any of:
        /usr/lib/go-1.11/src/github.com/rs/xaccess (from $GOROOT)
        /go/src/github.com/rs/xaccess (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/main.go:11:2: cannot find package "github.com/rs/xhandler" in any of:
        /usr/lib/go-1.11/src/github.com/rs/xhandler (from $GOROOT)
        /go/src/github.com/rs/xhandler (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/config.go:6:2: cannot find package "github.com/rs/xlog" in any of:
        /usr/lib/go-1.11/src/github.com/rs/xlog (from $GOROOT)
        /go/src/github.com/rs/xlog (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/handler.go:12:2: cannot find package "github.com/rs/xmux" in any of:
        /usr/lib/go-1.11/src/github.com/rs/xmux (from $GOROOT)
        /go/src/github.com/rs/xmux (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/utils.go:7:2: cannot find package "github.com/saintfish/chardet" in any of:
        /usr/lib/go-1.11/src/github.com/saintfish/chardet (from $GOROOT)
        /go/src/github.com/saintfish/chardet (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/handler.go:13:2: cannot find package "golang.org/x/net/context" in any of:
        /usr/lib/go-1.11/src/golang.org/x/net/context (from $GOROOT)
        /go/src/golang.org/x/net/context (from $GOPATH)
go/src/github.com/HeavyHorst/unoconv-api/utils.go:6:2: cannot find package "gopkg.in/iconv.v1" in any of:
        /usr/lib/go-1.11/src/gopkg.in/iconv.v1 (from $GOROOT)
        /go/src/gopkg.in/iconv.v1 (from $GOPATH)

I have almost no experience with golang. Apparently he is not using the go.mod file correctly.

I have fixed this using a docker multi-stage build. Would a PR be welcome?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.