Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A dockerised version of this to make the installation simpler would be great #29

Open
pucherot opened this issue Jan 14, 2021 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@pucherot
Copy link
Owner

Reddit request:

image

@pucherot pucherot added the enhancement New feature or request label Jan 14, 2021
@pucherot pucherot self-assigned this Jan 14, 2021
@pucherot pucherot added the WIP Work in progress label Feb 1, 2021
@BarnardCollier
Copy link

@pucherot

If you are interested, I created a docker version of pi.alert based on your 2.70 version. Would be happy to share code with you if you want. Nothing sophisticated as I am not an expert but it works.

@pucherot pucherot removed the WIP Work in progress label Apr 12, 2021
@schklom
Copy link

schklom commented Apr 23, 2021

@BarnardCollier Could you share the Dockerfile or the repo with your Docker version ?

@BarnardCollier
Copy link

My code is hosted on docker hub. See https://hub.docker.com/repository/docker/bcollier42/pialert. Earlier today, I saw that release 3.0 was out. @schklom are you going to take a stab at creating a V3 version of the docker? If so, let me know. I'm busy with work right now and would not have a lot of time for this for a couple of weeks.

@BarnardCollier
Copy link

My code is hosted on docker hub. See https://hub.docker.com/repository/docker/bcollier42/pialert. Earlier today, I saw that release 3.0 was out. @schklom are you going to take a stab at creating a V3 version of the docker? If so, let me know. I'm busy with work right now and would not have a lot of time for this for a couple of weeks.

Also, the code itself that I used to build the docker is found at https://github.com/BarnardCollier/pialert

@schklom
Copy link

schklom commented Apr 25, 2021

@BarnardCollier I can't promise it will work, but I can try and share my repo and image if it does.

But to do that, I need to see your code. Only the image is on DockerHub, not the Dockerfile, and https://github.com/BarnardCollier/pialert returns error 404 not found. I guess it is set as private?
Either set it to public, or make a new repo with only the necessary info, because currently I can't read your code.

@BarnardCollier
Copy link

@BarnardCollier I can't promise it will work, but I can try and share my repo and image if it does.

But to do that, I need to see your code. Only the image is on DockerHub, not the Dockerfile, and https://github.com/BarnardCollier/pialert returns error 404 not found. I guess it is set as private?
Either set it to public, or make a new repo with only the necessary info, because currently I can't read your code.

You were right. This was set as private. Changed it to public. Warning: this was one of my first docker project so take it for what it's worth!

@vidalpascual
Copy link

Any updates for docker version of v3.0 ?

@DocBrown101
Copy link

Any updates for docker version?

@BarnardCollier
Copy link

Any updates for docker version?

Sorry - for the last 8 months, I've been running Pi.Alert in a VM in Proxmox as I learned that platform. As I did not have a need for the Docker version, I did not investigate further but it's on my list of things to do in 2022.

B.

@schklom
Copy link

schklom commented Dec 22, 2021

@BarnardCollier I tried building your Dockerfile via GitHub Actions, and it consistently bugs at the line COPY pialert /opt/pialert

#5 [1/7] FROM docker.io/library/debian@sha256:2906804d2a64e8a13a434a1a127fe3f6a28bf7cf3696be4223b06276f32f1f2d
#5 resolve docker.io/library/debian@sha256:2906804d2a64e8a13a434a1a127fe3f6a28bf7cf3696be4223b06276f32f1f2d done
#5 sha256:fd92fbcda272f5935dcd0dfea445cba0152208f83c8fc8d2cb74c85379145c42 0B / 50.12MB
#5 DONE 0.0s

#6 [2/7] RUN apt-get -qq update > /dev/null && apt-get -qq upgrade -y > /dev/null && apt-get -qq install -y apt-utils > /dev/null
#6 CANCELED
------
 > [5/7] COPY pialert /opt/pialert:
------
Dockerfile:17
--------------------
  15 |     RUN mkdir -p /opt/pialert
  16 |     
  17 | >>> COPY pialert /opt/pialert
  18 |     
  19 |     COPY start.sh /opt/pialert/docker_start.sh
--------------------
error: failed to solve: failed to compute cache key: "/pialert": not found
Error: buildx failed with: error: failed to solve: failed to compute cache key: "/pialert": not found

It looks like you're trying to copy pialert but it doesn't exist.

@jokob-sk
Copy link

I gave it a shot here: https://github.com/jokob-sk/Docker-Image-for-Pi.Alert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants