There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

NullGator ,

repo’s readme mentions having support for docker…

beta_tester ,

Why is it called *arr? That’s misleading

thelastknowngod ,

There are build instructions in the readme. What’s stopping you?

deleted ,

Knowledge?

I know how to deploy a container with docker compose but I don’t know how to build it.

I’m a .net developer and I didn’t even know you can build it into a container.

thelastknowngod ,

You can do it bro. Dockerfiles are basically just shell scripts with a few extras.

It uses npm to build so start with a node base container. You can find them on docker hub. Alpine-based images are a good starting point.


<span style="color:#323232;">FROM appdynamics/nodejs-agent:23.5.0-19-alpine 
</span><span style="color:#323232;">
</span><span style="color:#323232;">RUN git clone https://github.com/stophecom/sharrr-svelte.git &amp;&amp;  
</span><span style="color:#323232;">    cd sharrr-svelt/ &amp;&amp; 
</span><span style="color:#323232;">    npm run build
</span>

If you need to access files from outside of the container, include a VOLUME line. If it needs to be accessible from a specific network port, add an EXPOSE line. Add a CMD line at the end to start whatever command needs to be run to start the process.

Save your Dockerfile and build.


<span style="color:#323232;">docker build . -t my-sharrr-image
</span>
key ,

I wouldn’t use AppD’s node agent as a starting point unless you’re planning to use AppD. Which you shouldn’t unless you’re a big business still talking about future plans to move to the cloud.

Picking a random image from dockerhub isn’t the best for security or reliability. You’re better off sticking to official images offered by a large, well known project. There’s even an official node image hub.docker.com/_/node/

thelastknowngod ,

Figured this would be one of the responses. Thanks. I don’t interact with node very often. I assumed there was a better option but wasn’t sure which… This is just the first result.

deleted ,

Definitely would look into it. Thanks

lemmyvore ,

Read up on it a bit, it’s fairly easy. It’s similar to writing compose files but those are for using the image, dockerfiles are how you put it together. You get to decide very similar things to compose — what image to use, what ports to expose — but you also get to run commands to set up the insides of the image.

You do have to know a bit of Linux and how to setup the software you want to use though.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines