You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.
I pulled down source tonight to make some changes and found the docker image has some issues resolving apt targets. I've encountered this before (it's due to jessie getting mothballed) and figured I'd share here for others wanting to build directly on their pi with an octopi distro.
Use the following for your Dockerfile:
ARG IMAGE
FROM ${IMAGE}
ARG GO_TAGS
ENV GO_TAGS=${GO_TAGS}
RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update
RUN apt-get -o Acquire::Check-Valid-Until=false update && apt-get -o Acquire::Check-Valid-Until=false install -y --no-install-recommends \
git build-essential \
debhelper devscripts fakeroot git-buildpackage dh-make dh-systemd dh-golang \
libcairo2-dev \
libgtk-3-dev
# We cache go get gtk, to speed up builds.
#RUN go get -tags ${GO_TAGS} -v github.com/gotk3/gotk3/gtk/...
ADD . ${GOPATH}/src/github.com/mcuadros/OctoPrint-TFT/
#RUN go get -tags ${GO_TAGS} -v ./...
WORKDIR ${GOPATH}/src/github.com/mcuadros/OctoPrint-TFT/
The text was updated successfully, but these errors were encountered:
I solved it, by making some dirty changes to the makefile.
I changed the package properties from the jessie-part to the same values as the stretch properties.
`
DEBIAN_PACKAGES = JESSIE STRETCH
STRETCH_NAME := stretch
STRETCH_IMAGE := golang:1.9-stretch
STRETCH_GO_TAGS := gtk_3_22
I pulled down source tonight to make some changes and found the docker image has some issues resolving apt targets. I've encountered this before (it's due to jessie getting mothballed) and figured I'd share here for others wanting to build directly on their pi with an octopi distro.
Use the following for your Dockerfile:
The text was updated successfully, but these errors were encountered: