I am trying to push a package on IBM cloud
cf push “Backoffice” -p target/Backoffice.war
FAILED
Incorrect Usage.
[...]
-p Path to app directory or to a zip file of the contents of the app directory
where
cf -v
cf version 6.33.1+c77e55743.2017-12-15
I don't know what to do since my call with the "-p" option is inline with the doc. I am new to cloudfoundry / IBM Cloud.
I don't have a manifest.yml file.
Then I do (and I get):
cf logs "VCBackoffice V2"
" maximum number of connection retries reached "
Can you help me identifying the problem(s) ?
it was “Backoffice” and not "Backoffice" (bad quotes from a cut and paste)
Also doing a new "cf login" solved my problems
Related
I am trying to push images I have built locally to the GitHub Container Registry aka Packages.
I have authenticated GitHub using PAT and authorized access to the organization. Let's name this organization EXAMPLEORG.
used the following command:
export CR_PAT=ghp_example_pat ; echo $CR_PAT | sudo docker login ghcr.io -u exampleuser --password-stdin
After that, I used the following command to push the image to ghcr.io:
docker push ghcr.io/exampleorg/exampleapp:v0.5
Unfortunately, I am getting this message after trying to upload image layers:
unauthorized: unauthenticated: User cannot be authenticated with the token provided.
Does somebody knows what I am missing here?
Followed this guide:
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry
Is there something more I need to do in order to manually push image to Org packages (not interested to do it from the workflow at the moment).
Apparently, it was due to the wrong content of the ~/.docker/config.json file. During the first command, it happens to fail while writing. So I used sudo to circumvent this, and indeed it was circumvented, but the new file is now written in /root/.docker/config.json which is not desired outcome. Using docker login afterward will not read the config file from the root's home.
The solution to this is not to use sudo instead delete ~/.docker/config.json and then execute:
export CR_PAT=ghp_example_pat ; echo $CR_PAT | docker login ghcr.io -u exampleuser --password-stdin
I want to create the blockchain explorer for the sovrin network.
currently indyscan repo is there https://github.com/Patrik-Stas/indyscan.
I can not get started with indyscan by following the instruction in the given repo.
IndyPool + IndyScan on localhost....first command 'docker-compose up' gives an error.
"Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml
"
Can anybody help me with how to get started with HL Indy + explorer?
Most of the repo are related to fabric only.
I am also new with IndyScan but was able to get things going with docker-compose -f docker-compose.es.yml -f docker-compose.yml up -d. Make sure that you are in the start directory in the repo.
I am trying to debug a java app on GKE cluster through stack driver.
I have created a GKE cluster with Allow full access to all Cloud APIs
I am following documentation: https://cloud.google.com/debugger/docs/setup/java
Here is my DockerFile:
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE} alnt-watchlist-microservice.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/alnt-watchlist-microservice.jar"]
In documentation, it was written to add following lines in DockeFile:
RUN mkdir /opt/cdbg && \
wget -qO- https://storage.googleapis.com/cloud-debugger/compute-java/debian-wheezy/cdbg_java_agent_gce.tar.gz | \
tar xvz -C /opt/cdbg
RUN java -agentpath:/opt/cdbg/cdbg_java_agent.so
-Dcom.google.cdbg.module=tpm-watchlist
-Dcom.google.cdbg.version=v1
-jar /alnt-watchlist-microservice.jar
When I build DockerFile, It fails saying tar: invalid magic , tar: short read.
In stackdriver debug console, It always show 'No deployed application found'. Which application it will show? I have already 2 services deployed on my kubernetes cluster.
I have already executed
gcloud debug source gen-repo-info-file --output-directory="WEB-INF/classes/
in my project's directory.
It generated source-context.json. After its creation, I tried building docker image and its failing.
The debugger will be ready for use when you deploy your containerized app. You are getting No deployed application found error because your debugger agent is failing to download or unzip in dockerfile.
Please check this discussion to resolve the tar: invalid magic , tar: short read. error.
Unfortunately it looks like Alpine isn't regularly tested with Debugger. There's a sample setup here that might help you: https://github.com/GoogleCloudPlatform/cloud-debug-java#alpine-linux
I resolved the issue.
Firstly, you will have to use java image "gcr.io/google-appengine/openjdk" instead of Alpine one.
Secondly,
I was putting entry points without comma separated (Basically in wrong format)
ENTRYPOINT ["java","-agentpath:/opt/cdbg/cdbg_java_agent.so", "-Djava.security.egd=file:/dev/./urandom" ,"-Dcom.google.cdbg.module=watchlist"]
I'm trying to deploy a project created in business central. Currently I'm using docker's jboss/drools-workbench container, and whenever I click on the deploy button I get an error message (see below).
I have looked at the server log and there was no error when attempting to deploy the project. I have also tried using standalone wildfly's management console to deploy Drools warfile which was unsuccessful since an error about missing/unavailable module (slf4j) and, in another instance, attempted to link to jboss/kie-server container with my drools-workbench container for which the application becomes unresponsive.
My rule is a simple "hello" application
rule "hello"
when
$name: String( )
then
System.out.println( "Hello " + $name + "!" );
end
And I also have tried linking jboss/kie-server container to drools-workbench container,
$ docker run -p 8080:8080 -p 8001:8001 -d --name drools-workbench jboss/drools-workbench
$ docker run -p 8180:8080 -d --name kie-server --link drools-workbench:kie-wb jboss/kie-server
The server logs are in https://pastebin.com/A97exiJu the error I get from the UI is "Deployment was skipped, couldn't find any server running in 'development' mode." I have tried changing the project to production mode, but I still get the same error except for "development" it states "production".
I am running Google Cloud Shell on my Windows 7, when trying to fire a new bucket on my PRJOECT I am getting an error.
Command --> C:\Users********>gsutil mb gs://MY-PROJECT-ID -p
MY-PROJECT-ID
Error
CommandException: "mb" command does not support "file://" URLs. Did
you mean to use a gs:// URL?
Anyone to help?
thanks
Try this (bucket name argument at the end):
gsutil mb -p my-project-id gs://my-bucket-name
set cloud platform with the current project before do anything
gcloud config set project qwiklabs-gcp-PROJECT_ID