Im trying to install the following components on Openshift (Free plan: 3 small gears):
Nginx
Php - php-fpm
MySQL
Wordpress
Since a DIY cartridge is limited to 1 gear and can't be scaled, do I need to install all components on one gear, or should I install each component on a separate gear? What's the best approach to install a custom LEMP stack on this server?
Thanks
You would need to install all of the components on one gear. If you install the database on a separate gear, without using a scaled application, then you would run into issues connecting to the database without using port forwarding between your gears.
Related
I currently have a Laravel application running on ElasticBeanstalk with the following file running a deployment command for me...
.ebextensions/deployment-commands.config
container_commands:
01-run-migrations:
command: "php artisan migrate --force"
cwd: "/var/app/ondeck"
leader_only: true
I'm trying to update my PHP version to 7.4 so I need to upgrade to an Amazon Linux 2 server. This command doesn't seem to work on the new Amazon Linux 2 setup so I'm wondering if it will pickup ebextensions anymore and if so do I need to change the cwd? Basically what do I need to do to get this deployment command to work?
I'm trying to update my PHP version to 7.4 so I need to upgrade to an Amazon Linux 2 server.
Not sure what do you mean here, but upgrading from Amazon Linux 1 (AL1) to AL2 may require many more changes then just upgrading php:
Migrating your Elastic Beanstalk Linux application to Amazon Linux 2
container_commands run in staging folder /var/app/staging. But you are trying to use different folder /var/app/ondeck which may be why you don't see the commands effects.
I am trying to configure LAMP on a local Ubuntu dev box. I cannot seem to find any reliable docs about:
How to configure MySQL login info to support WordPress, and
How to set up a database suitable for WordPress.
If I google WordPress, I get hundreds of commercial links selling themes, plug-ins, and what-not, but no concise configuration info.
Any pointers would be appreciated.
First, install lamp server and configure it: https://do.co/2P9WBxn
Then install WordPress: https://do.co/2vMnnDU
I am trying to port one of our Tomcat based Windows application to Windows Nano Server Container. The installation process includes two Windows Service installations - an ActiveMQ service and another Tomcat Service. This is achieved using two batch files provided with the product. In addition to installing the service, they also pass several arguments pertaining to JVM. Now the issue I am facing is I am not able to get these services installed on a Nano Server. The same Dockerfile works perfect and installs the product on Windows Server Core Container.
Observation: The services which get installed through batch files are dependent on two system components - Ancillary Function Driver for Winsock (Service name: afd) and TCP/IP Protocol Driver (Service Name: tcpip). This is something which I discovered on a VM where the product was installed when checking the service properties. I see that they are absent in a Nano Server Container but are present in Windows Server Core container. Could that be a reason? If yes, is there any way to get those services running on Nano Server?
I am at a loss on how to troubleshoot this issue. Are there any limitations on Nano Server Container when it comes to Windows Services?
Consider building your docker container from the ground up,
Determine and set your prerequisites
Install all of the dependencies first
Install the application and services in question
(For additional information you can look at this wiki page.)
The Nano server container is minimal and misses many windows default services, you’ll have to build most of them through Dockerfile yourself.
The easiest method will be to do this manually on Nano server and confirm everything to be working in the docker container/image, and then later generate an automated build.
What is the difference between rhc and oc CLI-tools?
As I see, they do almost the same:
oc:
The OpenShift CLI exposes commands for managing your applications, as
well as lower level tools to interact with each component of your
system.
rhc does the same, no?
What should I use to manage my containers on OpenShift platform?
The rhc tool is for OpenShift 2. The oc tool is for OpenShift 3. They are completely different versions of the package. So you need to know which version of OpenShift you are using. If you are using the existing OpenShift Online version it is version 2. If you are using the new OpenShift Online developer preview, it is version 3.
I have a WildFly 8.1.0CR1 instance on my free OpenShift Online account. Now I see that a new version of WildFly is available (WildFly 8.1.0Final).
Is it possible to upgrade it without removing the cartridge and adding it again?
You would have to remove the cartridge and re-install it, however, since you can not remove a web_framework cartridge (because it is the main cartridge on the gear) then you would need to create a new gear and migrate your application to it.