mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-06 23:42:17 +00:00
Install on a raspberry pi? #374
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @camdenorrb on GitHub.
I can't seem to get docker to host it's own transfer.sh site. `pi@raspberrypi:/opt $ cd transfer.sh
pi@raspberrypi:/opt/transfer.sh $ docker build -t transfersh .
Sending build context to Docker daemon 2.358 MB
Step 1 : FROM golang
latest: Pulling from library/golang
efd26ecc9548: Pull complete
a3ed95caeb02: Pull complete
d1784d73276e: Pull complete
72e581645fc3: Pull complete
01ce90e06b06: Pull complete
666886c80650: Pull complete
2b9aef313bfc: Pull complete
a47658d1602e: Pull complete
Digest: sha256:d93f678ece9be3e1b5c8d845892fd5d469c8cb8aef335cee8df63c41d0f60818
Status: Downloaded newer image for golang:latest
---> a274681c9df8
Step 2 : MAINTAINER Remco Verhoef remco@dutchcoders.io
---> Running in 819bc2ab9d32
---> 1bc96b6d1c8c
Removing intermediate container 819bc2ab9d32
Step 3 : RUN mkdir -p /go/src/app
---> Running in 772ee128ed22
exec format error
Cannot start container 772ee128ed223d3e66ae4a779dec07375e5d06d33f81404029976973e6712504: [9] System error: exec format error
pi@raspberrypi:/opt/transfer.sh $ docker run --publish 8080:8080 --rm transfersh --provider local --basedir /tmp/
Unable to find image 'transfersh:latest' locally
Pulling repository docker.io/library/transfersh
docker: Error: image library/transfersh not found.
See 'docker run --help'.
pi@raspberrypi:/opt/transfer.sh`
Any ways I can host it on my raspberry pi? if so any help is appreciated :)
@schollz commented on GitHub:
Download and install:
Add a
workdirectory to store Go dependencies.Then
nano ~/.profileto add these lines:Reload the profile, and that's it! Test with
@camdenorrb commented on GitHub:
How do I install Go?
@schollz commented on GitHub:
I don't know Docker, but why not just build with Go? After you install Go just use:
Make sure to replace
YOURSERVERwith your DNS so it defaults to your server on the webpage and in the code. Then run@camdenorrb commented on GitHub:
Thx ^-^