Reddit DevOps
266 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Best states to work in if you work in IT for example ccna holder and and have network eng/admin exp?

In what states (US)do positions like network engineer/network admin make more? Is that overall for Information technology positions or just isolated to networking? high cost of living to low cost of living ratio? What state would you move if it had to be onsite?

https://redd.it/12x554q
@r_devops
Senior with 3YOE - Roast My Resumee

resumee link

I have 3 YOE, my last company gave me the official "senior" title for selling me as a consultant.I still feel like I am a junior. Do you think it's counterproductive? In case should I remove it?

Recently got the AWS Solutions Architect SA-C003.I am not in the USA and I left the previous job for a DevOps internship in a top tier company US remotely, recently started. 3 months duration.

I really hope to continue to work for them, I'm working with AWS and I am afraid if they don't confirm me I have to find other jobs, is the resumee good enough?

Is 2 pages too long? Maybe I used the wrong template?

And if you notice the overlapping times, I am also studying in the meantime.
I don't feel ready for a senior role of course I will look for mid/junior role always in DevOps


https://redd.it/12x7jab
@r_devops
Error while deploying an application in glassfish application server?

Error occurred during deployment: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton ResourceLoader. Please see server.log for more details.

I am trying to deploy an .ear application into glassfish admin console. I am getting the above mentioned error.

The server.log is this:
https://pastebin.com/rD6QKBnk


Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton ResourceLoader javax.ejb.CreateException: Initialization failed for Singleton ResourceLoader at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:476) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:74) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:647) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:389) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158) at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:166) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:253) at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:231) at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:275) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.iss.onethod.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151) at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:365) at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:316) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) at java.lang.Thread.run(Thread.java:750) Caused by: javax.ejb.EJBTransactionRolledbackException at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2342) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2123) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2044) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88) at com.sun.proxy.$Proxy358.getAllCBSQuery(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.iss.onethod.invoke(Method.java:498) at org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:414) at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127) at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56) at org.jboss.weld.bean.proxy.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:65) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100) at com.f1soft.banksmart.admin.dao.impl.ApplicationDAO$1497057171$Proxy$$$Weld$EnterpriseProxy$.getAllCBSQuery(Unknown Source) at com.f1soft.fonebank.adminejb.session.ResourceLoader.loadCbsQueryParameterMap(ResourceLoader.java:121) at com.f1soft.fonebank.adminejb.session.ResourceLoader.startup(ResourceLoader.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.iss.onethod.invoke(Method.java:498) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:1035) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72) at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:205) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.iss.onethod.invoke(Method.java:498) at com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:986) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72) at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:205) at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163) at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.init(SystemInterceptorProxy.java:125) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.iss.onethod.invoke(Method.java:498) at com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:986) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:412) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:375) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:2014) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:468) ... 88 more Caused by: javax.ejb.TransactionRolledbackLocalException: Client's transaction aborted at com.sun.ejb.containers.EJBContainerTransactionManager.useClientTx(EJBContainerTransactionManager.java:357) at com.sun.ejb.containers.EJBContainerTransactionManager.preInvokeTx(EJBContainerTransactionManager.java:251) at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:4524) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1986) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:210) ... 130 more



I tried confirming the stuffs at

/home/banksmart/glassfish4/glassfish/domains/domain1/config


were similar to what was written in instruction manual. It is indeed except that mine contains few more files.

banksmart@localhost config$ ls
accountConfiguration.properties domain.xml logging.properties
adminConfiguration.properties domain.xml.bak login.conf
admin-keyfile email-configuration.yml pid
applicationMessages.properties glassfish-acc.xml pid.prev
cacerts.jks javaee.server.policy restrict.server.policy
cbs-config.yml keyfile server.policy
datasource-cbs-config.yml keystore.jks utilities-config.yml
default-logging.properties local-password wss-server-config-1.0.xml
default-web.xml lockfile wss-server-config-2.0.xml
domain-passwords log4j.properties


This is what is written in instruction:

written in instruction

https://redd.it/12x93bs
@r_devops
Packer: Ubuntu Image VMWare Customisation

Hey all, not sure if this is the best place for this question, but hey-ho!

​

I have a Packer Ubuntu project that is building an Ubuntu 22.10 image and installing open-vm-tools (among other things), however, when cloning the VM, I am not getting any options to customise the VM (IP, hostname etc etc) - does anyone know the best way to get this configured?

​

TIA!

https://redd.it/12xak97
@r_devops
Bash and other packages missing from the Dockerfile image after building it

I have the following **Dockerfile**:

#FROM zulu:8-jre-alpine
FROM azul/zulu-openjdk-alpine:8-jre

RUN sed -i 's/https/http/' /etc/apk/repositories
#use this because of an issue with apk not working behind proxy on alpine3.13

# installing jq and envsubst binary, very usefull for shell templating
RUN apk update && apk add --no-cache ca-certificates java-cacerts jq bash libintl tini \
&& apk --no-cache add -t p gettext \
&& cp /usr/bin/envsubst /usr/local/bin/envsubst \
&& apk del p

# Kaniko kontext use in build is /builds/infra/baseimages
# and kaniko/ssl/certs/ should be relateive path to the context
# Absolute path does not seem to be supported at kaniko 1.9.1 for COPY below
COPY ../../../kaniko/ssl/certs/ /usr/local/share/ca-certificates/
RUN update-ca-certificates

# Zulu requires an additional symlink. Unlike OpenJDK the Zulu cacerts does not automatically symlink to /etc/ssl/certs/java/cacerts
RUN rm $JAVA_HOME/jre/lib/security/cacerts && ln -s /etc/ssl/certs/java/cacerts $JAVA_HOME/jre/lib/security/cacerts

RUN echo "export http_proxy=${HTTP_PROXY}" >> /etc/profile.d/proxy.sh && echo "export https_proxy=${HTTPS_PROXY}" >> /etc/profile.d/proxy.sh && echo "export no_proxy=${NO_PROXY}" >> /etc/profile.d/proxy.sh

COPY files/run-java.sh /usr/local/bin/

I install bash and I expect it to be there when I execute it in the container but it is not.

​

Running `docker run -it --rm --entrypoint /bin/sh image`:

​

/ # bash
/bin/sh: bash: not found
/ # apk list bash
bash-5.1.16-r0 x86_64 {bash} (GPL-3.0-or-later) [installed]

​

It can see in the list also if I run `apk info bash`:

/ # apk info bash
bash-5.1.16-r0 description:
The GNU Bourne Again shell

bash-5.1.16-r0 webpage:
https://www.gnu.org/software/bash/bash.html

bash-5.1.16-r0 installed size:
1296 KiB

/ #

If I do `apk del bash` and then `apk add bash`\`it sees it and it works.

/ # apk add bash
OK: 126 MiB in 45 packages
/ # bash
/bin/sh: bash: not found
/ # apk del bash
(1/4) Purging bash (5.1.16-r0)
Executing bash-5.1.16-r0.pre-deinstall
(2/4) Purging readline (8.1.1-r0)
(3/4) Purging ncurses-libs (6.3_p20211120-r1)
(4/4) Purging ncurses-terminfo-base (6.3_p20211120-r1)
Executing busybox-1.34.1-r7.trigger
OK: 123 MiB in 41 packages
/ # apk add bash
(1/4) Installing ncurses-terminfo-base (6.3_p20211120-r1)
(2/4) Installing ncurses-libs (6.3_p20211120-r1)
(3/4) Installing readline (8.1.1-r0)
(4/4) Installing bash (5.1.16-r0)
Executing bash-5.1.16-r0.post-install
Executing busybox-1.34.1-r7.trigger
OK: 126 MiB in 45 packages
/ # bash

We are using this Dockerfile as the base and then from this image, it uses to build others like the one above:

#FROM kaniko:1.9.1
FROM gcr.io/kaniko-project/executor:v1.9.1-debug AS kaniko

FROM alpine:3.15

# Use this because of an issue with apk not working behind proxy on alpine3.13/3.14
RUN sed -i 's/https/http/' /etc/apk/repositories

# Adding CAs so that my curl trusts internal resources AND apk trusts https://dl-cdn.alpinelinux.org behind our proxy
RUN echo "export http_proxy=${HTTP_PROXY}" >> /etc/profile.d/proxy.sh && echo "export https_proxy=${HTTPS_PROXY}" >> /etc/profile.d/proxy.sh && echo "export no_proxy=${NO_PROXY}" >> /etc/profile.d/proxy.sh

# Install necessary packages
RUN apk update \
&& apk --no-cache add \
jq \
yq \
git \
gettext \
tzdata \
unzip \
bash \
ca-certificates \
openssl \
coreutils

COPY --from=kaniko /kaniko/executor /kaniko/executor
COPY --from=kaniko /kaniko/docker-credential-gcr /kaniko/docker-credential-gcr
COPY --from=kaniko /kaniko/docker-credential-acr-env /kaniko/docker-credential-acr-env
COPY --from=kaniko /kaniko/.docker /kaniko/.docker
COPY --from=kaniko /kaniko/ssl/certs/ /kaniko/ssl/certs/
COPY --from=kaniko /etc/nsswitch.conf /etc/nsswitch.conf

COPY certs/* /kaniko/ssl/certs/

ENV SSL_CERT_DIR=/kaniko/ssl/certs/
ENV DOCKER_CONFIG /kaniko/.docker/
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json

ENTRYPOINT ["/kaniko/executor"]

​

I am guessing there is something happening that corrupts or makes bash not available in the first image but I am not sure exactly what or why it's happening for this one.

Also, I checked the path by executing into the image:

`/ # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\`

To give a bit more context:

\- I am using Kaniko as the de facto executor but since we have multiple other images and scripts we need to install some additional packages to accommodate all the other builds of the images for our internal CR.

\- What I noticed is that if I switch the base image from `alpine3.15` to `alpine3.12` all the other images that use or have `alpine3.12` or `alpine3.15` fail. In this case, since we use `alpine3.15` **4** images are failing from **45**, which are the images that are using the same base image which is `alpine3.15`

​

Also adding a minimal reproducible example(s):

​

#FROM zulu:8-jre-alpine
FROM azul/zulu-openjdk-alpine:8-jre

RUN apk update && apk add --no-cache ca-certificates java-cacerts jq bash libintl tini \
&& apk --no-cache add -t p gettext \
&& cp /usr/bin/envsubst /usr/local/bin/envsubst \
&& apk del p

Kaniko Dockerfile:

#FROM kaniko:1.9.1
FROM gcr.io/kaniko-project/executor:v1.9.1-debug AS kaniko

FROM alpine:3.15

# Install necessary packages
RUN apk update \
&& apk --no-cache add \
jq \
yq \
git \
gettext \
tzdata \
unzip \
bash \
ca-certificates \
openssl \
coreutils

COPY --from=kaniko /kaniko/executor /kaniko/executor
COPY --from=kaniko /kaniko/docker-credential-gcr /kaniko/docker-credential-gcr
COPY --from=kaniko /kaniko/docker-credential-acr-env /kaniko/docker-credential-acr-env
COPY --from=kaniko /kaniko/.docker /kaniko/.docker
COPY --from=kaniko /kaniko/ssl/certs/ /kaniko/ssl/certs/
COPY --from=kaniko /etc/nsswitch.conf /etc/nsswitch.conf

ENV SSL_CERT_DIR=/kaniko/ssl/certs/
ENV DOCKER_CONFIG /kaniko/.docker/
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json

ENTRYPOINT ["/kaniko/executor"]

​

https://redd.it/12xbyda
@r_devops
Day to Day task as a devops

Just got hired as a devops in a very well renowned product and saas base company, Before landing this i was working as jr devops in a project base company for 5 months (graduated 6 months ago)

Just wanted to ask what are the typical tasks and responsibilities that you have and how the onboarding of a resouce looks like for example if you hire a new guy do you guys starts training them etc

For me it starts with training because i am not familiar with few of the technologies that the company the company is using

My plan is to move to uk and want to explore uk market so i wanted to know what can i expect

https://redd.it/12x74ye
@r_devops
Good sub or Discord channel to practice interviews and mocks?

Just got to know EU startup I work remote is shutting down. I am an experienced SRE/Devops and have beeen working on setting up GKE with Pulumi, typescript and stateful databases, Datadog and openTelemetry recently but I now have to catch up on EKS and anything that I haven't worked on recently.

Is there a good sub or Discord channel where you get to practice interviews, maybe take mocks and just keep morale up while job hunting.

https://redd.it/12xfscg
@r_devops
Having problems while converting my .p7b certificate into .pfx format.

I am trying to create SSL certificate for my Java application. For that I generated my certificate singing request (CSR) using keytool. Now, after requesting certificate, I got it in .p7b format that I don't want. My required format is .pfx or .p12.

I tried to convert this into .pfx but not succeed. I tried openssl command for this.

openssl pkcs7 -print_certs -in yourdomain.p7b -out yourdomain.pem

openssl pkcs12 -export -in yourdomain.pem -inkey yourdomain.key -out yourdomain.pfx

But this is not working and saying that unable to load private key. Please if someone can help me with this.

https://redd.it/12x2j2o
@r_devops
Why are all the Indian job canidates so bad

My company is hiring for a new web developer and getting floaded with applicants. I'm vetting all of these and have extended numerous interviews. All of the Indian applications I get are all the same. They have a bachelor's from an Indian college, getting a master's from a US college, and have a resume 5-7 pages long of nonsense bullet points. We've given interviews to some of the applicants. In all of the interviews, they would either cheat during the coding tests or lie about their qualifications regarding the software or language.

https://redd.it/12xhv4j
@r_devops
I need a proxy to cache (incl. POST, body based keys) and modify headers

I have this API that I do not control.

I need a proxy between my application and this API that:

1. Will send my API key to the origin without exposing it
2. Add CORS headers so my front-end application can work with it
3. Cache the response for some amount of time, including POST requests and keys based off request body

What would be the easiest way to achieve this? I could write a small proxy server but I'm sure there are ready-to-use solutions out there.

CloudFront nailed the two first points, but it doesn't cache POST requests.

Thanks in advance!

https://redd.it/12xozaw
@r_devops
How your perfect CI/CD pipeline look like?

Ignoring all the constraints and tooling restrictions, how will you design it?

https://redd.it/12xrfii
@r_devops
As a developer/SWE (particularly in a regulated industry) do you have admin access access to your local work laptop?

If you don’t, what do you do instead? If you do, could you do your job without?

https://redd.it/12xs5xp
@r_devops
Fabcy a DevSecOps CTF

My company have made a capture the flag tournament all about hacking with a DevOps flare. Stuff like hacking Jenkins or Kubernetes. Solve the puzzle, find the flag, learn some security tips and win points. FREE to play, with some chat and networking over on discord.

It's next Thursday (4th May, Star Wars day) and you can sign up and play for free at https://ctf.punksecurity.co.uk/

https://redd.it/12xussr
@r_devops
Is secure string variable a different format from the usual string?

I am running a pipeline where I’m trying to pass a secure string variable as input parameter to my PowerShell script. But it keeps failing. And for context, I’m sending a connection string that is critical to access azure blob data.

https://redd.it/12xu8xz
@r_devops
Getting better at observability, looking for suggestions for my python-based discord bot.

TL;DR: I'm looking for a good, ideally OpenTelemetry base stack for python that would work well for the scenarios below (distributed traces, logging, metrics), knowing that I have to manually instrument, and plays well in local dev env.


Hey all. I have some experience with Azure Monitoring and App Insights, but the tooling there for python is... lacking.

So I'm taking this opportunity to expand my scope of knowledge and try something different.

My needs are as follows:

\- I have websockets that I receive messages on that I'd like to handle as a new span/operation id- I want to be able to associate python logging as trace events so I can view a timeline of what happened for a given handler call.- I want to be able to treat my calls to external dependencies like HTTP or database over tcp as child traces.- I want to be able to capture overall traces status (success/fail and if possible why)

\- I have discord command handlers that should have similar requirements to the websockets.

\- I want to be able to emit metrics both linked to my traces (duration and context dimensions) as well as independent (ex: breakdown of commands ran by discord server id)

I feel as though with some massaging I could probably keep using application insights + python OTel + Azure Monitor Exporters OTel Preview, but it seems to me that given this isn't a work project, this is a fine learning opportunity.

So as a result, I'm adding a few "nice to have" options.

1. I have monthly credit on Azure, so anything I can host "production in azure" would be great.
2. I would love whatever I use to have a relatively solid self-host development solution
3. The more I can do configuration and provisioning as code, the better.
4. Free is best, cheap is good.

I've been looking a bit at grafana, prometheus, and loki. I'm not clear where traces are stored in this sort of a setup. In fact, I'm still trying to wrap my head around the OTel model, so there are things about it I clearly don't fully understand, but I'm in a bit of a "I don't know what I don't know, ya know?" state right now.

Thanks in advance to anyone who can help point me in a helpful direction.

https://redd.it/12xmd90
@r_devops
Those of you with internal CLIs/tooling written in general purpose languages what do they do and what language?

Recently wrote a tiny GoLang CLI that wraps kubectl and AWS CLI to make running commands for different environments/regions/services easier and looking for inspiration to add to it!

https://redd.it/12y2r51
@r_devops