I need to test the code I developed for the operator 0.17 to 1.2 operator-sdk kit. I am struggling to understand how can I run the operator locally before build the docker image and test the same?
Is there a way to test locally without building docker images?
operator-sdk 1.0+ scaffolds a make target make run for running locally.
https://github.com/operator-framework/operator-sdk/blob/master/testdata/go/v3/memcached-operator/Makefile#L40
Related
I have a Windows Server 2012 R2 where I installed Jenkins.
I want to run some tests that execute Swift code for our iOS app in a Jenkins pipeline.
First of all, is it possible to run such tests, since Jenkins is installed on a Windows server?
Second, is there any Jenkins plugin I can use to perform such task?
Do you know of any documentation or tutorial?
I have not been able to find anything relevant on the Internet.
Thank you very much
cghersi
It’s possible to run Swift on windows, but to run all your iOS app’s tests (which invariably will depend on iOS specific frameworks like UIKit or SwiftUI) is only possible via the Xcode tool chain on macOS.
I am trying to use the new docker ecs feature, but just get an error 'ecs' is not a docker command.
Using the latest version of docker edge on macOS 10.15.7
Do I need some additional steps to activate the docker command?
For anyone who was following documentation they found about docker ecs written previous to some development changes - while it used to be a plugin, ECS integration is now part of the docker cli itself.
This document covers how to set it up using a context
https://docs.docker.com/engine/context/ecs-integration/
Anyone know how I can get a build of Windows with Powershell 2.0 running in a Docker container for testing? I've looked at all the official images from MS and none of them seem to have support for it. I have a client I'm helping with getting away from their old machines, but I have to write some scripts that will be run in the old environment (PS 2.0).
I don't know about specific Docker image, but you can use Powershell 2.0 simply by running powershell.exe -version 2 with latest Windows 10 for example.
Reference.
Found a link to a Windows Server image with Net Framework 3 installed, which has Powershell v2 included. Using the command from #Niklas above, I now have a working Powershell v2.0 environment for testing! See below for the docker image link.
https://stackoverflow.com/a/59525183/5445457
I'm trying to deploy a Perfect app to Heroku, but I have only succeeded in getting the Swift compiler to run on Herolu with Perfect's own build pack. However, this build pack uses Swift 2.2 and my app runs on Swift 3.
I have then tried a variety of other build packs, including vapor, neonichu, and the seemingly most popular one: kylef.
But for everyone of them I get the same error message when pushing to Heroku:
Failed to detect set buildpack <url>.git
I feel I have exhausted my options, so this is my final try.
The makefile in your Heroku example project is referencing Ubuntu 14.0.4, the default Heroku app now is 16.0.4 as of May 2017. You need to set the ubuntu stack to cedar-14, and the swift app will deploy fine:
$ heroku stack:set cedar-14 -a example-app
$ git commit -m "update to cedar-14" --allow-empty
$ git push heroku master
I succeed with the error. The project structure didn't work.
Please use this project structure:
https://github.com/taplin/Perfect-Heroku-Buildpack-Example
I was linking this Buildpack at heroku:
https://github.com/PerfectlySoft/Perfect-Heroku-Buildpack
It worked fine for me. All other instructions you can take out of the video:
http://perfect.org/heroku-buildpack-for-perfect-and-swift.html
I'm looking for a way to integrate Docker containers with the Eclipse platform.
I would like to run all build/test/debug command inside containers and use same containers in Continuous Integration build and later in production.
The simplest way I looked on, was just to configure custom command but besides permissions problem (docker must run as sudo/root) it doesn't give me all the flexibility of real integration.
Any ideas on the best way to proceed?
it is not a full answer to your question but we (JBoss Tools team) started working on this and here are a few blogs about what is possible todo today and where we are with Eclipse docker tooling.
http://tools.jboss.org/blog/2015-03-02-getting-started-with-docker-and-wildfly.html
http://tools.jboss.org/blog/2015-03-03-docker-and-wildfly-2.html
http://tools.jboss.org/blog/2015-03-30-Eclipse_Docker_Tooling.html
To do that, i think you work on a Linux platform :-)
What i do for a classic java project :
Build a Docker image that contains a jdk and maven for example
In Eclipse, via "Run Configurations", create a "build in Docker" configuration that launch a command like this :
docker run --rm -v <eclipse_workspace_dir>:/usr/src/myapp -w /usr/src/myapp myrepo/myimage mvn clean install
it should work.
For your continuous integration, you can use Docker Jenkins plugin to do the same or with a sh script.
There is Docker Tooling for Eclipse, available from this update site (you also need to add this update site as for now).
Try Eclipse-Che
https://eclipse.org/che/
You can install it as a Docker runs.
These links were very useful to me :
https://github.com/docker/labs/blob/master/developer-tools/java-debugging/Eclipse-README.md
https://github.com/docker/labs/blob/master/developer-tools/java/chapters/ch07-eclipse.adoc
https://docs.docker.com/samples/
It is all about Tutorial: Debugging Java Applications in Docker, Install Docker Tooling in Eclipse
You can also Watch a quick video explaining the key steps in https://www.youtube.com/watch?v=XmhEZiS26os
To configure remote debugging in Eclipse, click on Run > Debug Configurations...
Tomcat for instance supports remote debugging the Java Platform Debugger Architecture (JPDA). Make sure that the remote debugging was enabled when the tomcat image (registration-webserver) was built.