Hello every one i just want to know is it possible to use my local docker image for containers in redhat openshift online free trial version https://www.openshift.com/trial/ (the one that has test drive over it)? As far as i have searched there are some solutions but that dont seem to work with this openshift online free trial, also i want to know why am i bening asked to enter password again in the profile form when i try to install openshift cli?
Refer to this awesome youtube video, I was able to successfully deploy my local docker image onto the dedicated openshift platform's docker registry with the help of this: Push local docker images to openshift registry - minishift
For deploying from local system you may need to do similar steps, only thing that would be slightly different is that in the video he has a local instance, whereas you would be referring to the online openshift cluster. You would be logging into the docker registry of the online openshift cluster from your local system using the oc cli.
Hope it helps.
Related
I'm building an application in Python and using GitHub Actions to automate the testing 'on push'. However, I now want to connect my app to an existing MySql database.
From searching the Marketplace, Google and YouTube, I can see the following options:
use the MySql supplied with the GitHub Actions' Ubuntu virtual environment
setup a new MySql dB inside the GitHub Actions VM.
Setup MySql inside a Docker container and connect to it from another Docker container containing my app.
What I can't see is how to connect out of the GitHub Actions VM to an existing database on my network. Is it possible and should I expect to see a pre-built action to do this in the Marketplace.
Sorry for such an obtuse question: old, out-of-date programmer new to both CI/CD and containerisation. Thank you.
I launched a WordPress website on a GCE VM and connected it to cloud SQL database and the website ran perfectly. However when I did the same but on a GKE cluster the WordPress installation got stuck here: wp-admin/setup-config.php?step=2.
It just wouldn't load. I'm not sure whether this is a problem with scopes/permissions or something else.
If you did the same steps to install WordPress in GCE and GKE it will not work cuz its a different service architecture, for GKE you should use and follow the steps for Kubernetes (WordPress from GCP Marketplace); If you already use this steps to deploy your WordPress Containers I would suggest to check Stackdriver Logging to more information about this issue and also retrieve logs from the pods:
kubectl logs [POD NAME]
how to deploy a basic html website on gke, what do i need other than the dockerfile and the .html application itself? i have tried deploying applications which already have all the yaml files included but i don't know how to start from scratch. i don't have a lot of experience and i haven't found anything online about this. can anyone provide a step by step tutorial? what do i do after creating the cluster? taken the website is called hey.html, is this dockerfile enough?
FROM nginx:alpine
RUN apt-get update
RUN apt-get install -y ngin
COPY hey.html/usr/share/nginx/html
EXPOSE 80
To deploy any application in GKE you will need some Kubernetes and GCP knowledge. You can start with official documentation, Coursera path about GKE and Kubernetes in Cloud, official documentation or this article which will introduce you to the basic concepts.
I can start from recommending a good tutorial from Kubernetes official documentation on how to deploy example PHP Guestbook application with Redis it should give you a practical example on how to deploy from scratch.
It also uses a service of a type LoadBalancer which will use a controller to tell GCP to create a LoadBalancer that will expose your application to Internet so you do not have to deal with anything to expose the app.
About your Docker file, the workflow will look something like this:
Push your Dockerfile to a registry (some useful materials here), you will put that docker image into a deployment for easier future management and then create a service because pods are mortal and replaceable and service will take care of traffic send to right pods even when they will be recreated, you might also need some persistent volume but this will be specific to your application. And here you will find another good how-to by Google.
Try this and if you will have issues just ask another question with details of the problems that occurred.
See below to make changes in dockerfile
FROM nginx:alpine
RUN apt-get update
COPY hey.html /usr/share/nginx/html
EXPOSE 80
I am new to openshift origin and just downloaded binary (All-in-One Server) from below URL and untar it
https://github.com/openshift/origin/releases
Now while google i found two option to start working with it, i want to know whats difference between them??
oc cluster up
openshift start
As both are providing console like
localhost:8443/console
I need to install a new linux server on a vps, for using mysql, apache, php and some php appications.
In the future i might need to move this server to an other machine ( for example when i want to move the vps to a machine of my own in collocation).
I understand that with Docker, it is possible to just copy to whole server installation to another machine, without the need to reinstall everything.
But what is the most easy way to do this? What action do i need to when installing the new server? I guess i need to install Linux and the rest in a Docker installation. But i am not sure. Does anyone know a step by step guide?
I am new to Docker. I get overwhelmed with all the tools on How to scale Docker containers in production.
I want to use Plesk as well. Plesk supports Docker. Perhaps is that an easy way to go.
1) Create Dockerfile in which you describe actions that you need to do on image, you can find examples in offical documentation https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
2) Build image from Dockerfile
3) Register on docker hub
4) Push your image to docker hub
5) When you setup new server you just need to pull your image from hub