Code Monkey home page Code Monkey logo

viewfinder's Introduction

Viewfinder

Description

Building

To build the viewfinder application locally you can use Podman or Docker.

Firstly, clone this repo to your local host

git clone https://github.com/boogiespook/viewfinder.git

The cd to the code directory cd viewfinder

You will need to be logged in to the Red Hat Registry (registry.access.redhat.com).

podman login registry.access.redhat.com

Enter your credentials and you will be able to pull the required images down to build the application. You can read more about this here: https://access.redhat.com/RegistryAuthentication

Followed by

podman build -t viewfinder:latest .

Output will look something like this

Getting image source signatures
Checking if image destination supports signatures
Copying blob sha256:0f50e783149b25f84a6a8263a36884e0be54048c3e792b55fa4ba13e93f2b5aa
Copying blob sha256:e584cd196457fe615697ae7bc6c7744519838a1bc718f9c7f04bfccb1d09da71
Copying blob sha256:1153e061da4ea9623b0dcdb9e8638b9432d5aa919217cc7c115b5a858f40f306
Copying blob sha256:4204970c1bfc82b3831e6267e6b670d34071b294bcd078e840f09ed9e3a348b2
Copying config sha256:c0520a77c4c619690f9caa6319623364888f186b100dd3ca217aa289a97ee37a
Writing manifest to image destination
Storing signatures
STEP 2/5: MAINTAINER Chris Jenkins "[email protected]"
--> 0d5a5bc5cbc2
STEP 3/5: EXPOSE 8080
--> 23390857b459
STEP 4/5: COPY . /opt/app-root/src
--> 95271e3e5caf
STEP 5/5: CMD /bin/bash -c 'php -S 0.0.0.0:8080'
COMMIT viewfinder:latest
--> deb31fe831fc
Successfully tagged localhost/viewfinder:latest
deb31fe831fcc850e8b8023b693b60de7f470829ffb0fdeb67f6454b259884e5

You can verify this by listing the images on your local machine

podman images

and you will get an output something like this

localhost/viewfinder latest deb31fe831fc 15 minutes ago 928 MB

Running

Once you have the container built you are ready to run the application.

podman run -p 8080:8080 localhost/viewfinder

If everything is fine you will see a message like this

PHP 8.0.30 Development Server (http://0.0.0.0:8080) started

You can then open a browser and type localhost:8080 to open the main page.

Pre-built image

If you would just like the image, it's available on quay.io:

podman pull quay.io/rhn_gps_cjenkins/viewfinder

Contributing

If you would like to contribute to this project, please feel free to fork the repo. All PRs are gratefully received!

viewfinder's People

Contributors

boogiespook avatar mmusaji avatar rsea0651 avatar fduthilleul avatar sluetze avatar

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.