NOT BUG!!!!IT'S A MISTAKE!!!!why docker-maven-plugin give me an error dockerfile which had an '&' [closed] - docker-maven-plugin

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
when i build my springboot project with docker.
I got this error in my idea output.
Step 1/8 : FROM openjdk:8u171
---> 8c80ddf988c8
Step 2/8 : MAINTAINER zhujiaxin<783725554#qq.com>
---> Using cache
---> 47b81dfbadd7
Step 3/8 : RUN mkdir /codemanager & WORKDIR /codemanager
---> Running in 7b664699f8dc
**/bin/sh: 1: WORKDIR: not found**
one row in dockerfile i think have error
RUN mkdir /codemanager & WORKDIR /codemanager
my MAVEN plugin configuration is below
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.2.2</version>
<configuration>
<dockerHost>http://127.0.0.1:2375</dockerHost>
<dockerDirectory>${basedir}/docker</dockerDirectory>
<imageName>hnxx/itmanager</imageName>
<imageTags>
<imageTag>1.0</imageTag>
</imageTags>
<resources>
<resource>
<targetPath>/codemanager</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
could you tell me how to fix this error?

Your assumption seems about right. If you have a line in your Dockerfile like this, it will probably cause an error:
RUN mkdir /codemanager & WORKDIR /codemanager
Change to this, because the Dockerfile commands RUN and WORKDIR must be on separate lines:
RUN mkdir /codemanager
WORKDIR /codemanager

Related

NGINX command not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
NGINX was built from source using the latest stable build on a debian 9 server. sudo nginx command cannot be found. The NGINX install is located in /usr/local/nginx. How can I configure my server to follow the standard sudo nginx [command] rules? I have tried adding PATH=/usr/sbin/:$PATH which did not work since NGINX is not located in sbin. Thanks
Run echo $PATH Does it contain /usr/local/sbin?
If not then add PATH=/usr/sbin/:$PATH to your .profile file.
Also, check that nginx is installed in /usr/local/sbin, by going into this directory.
If not then install it by using following commands:
sudo apt update
sudo apt install nginx

using phpdocumentor with Symfony3

I am wanting to use phpDocumentor with Symfony3. since they are not compatable with eachother as explained here I have installed phpDocumentor using pear as recomended.
My buidl.xml calls it like this.
<target name="phpdoc" description="Generate API documentation using PHPDocumentor">
<exec logoutput="true" command="/usr/bin/phpdoc -d ${source} -t ${basedir}/build/api" />
</target>
and when I run $ phing
I get the following error.
MyProject > phpdoc:
[exec] PHP Warning: require_once(/home/username/workspace/MyProject/vendor/dompdf/dompdf/dompdf_config.inc.php): failed to open stream: No such file or directory in /usr/share/php/phpDocumentor/src/phpDocumentor/Bootstrap.php on line 178
there is no dompdf/ folder in my vendor/ directory since it was not installed using composer
Is there anything else that I can use?
Is there a way of stopping phpdoc looking for a composer.json file and using the vendor directory of the project?
That'll likely be a bug. Right now, the PEAR and Composer installations might be unreliable. The development team recommends the PHAR instead, at least for now -- https://github.com/phpDocumentor/phpDocumentor2/issues/1859

How do I place my entire WordPress installation under git control? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How do I place my entire WordPress installation under git control? I am using Github on a Mac computer and I need to push all my work to a remote repository.
So the process is straight forward, but don't forget to include a dump of the database to your repository.
say you have the WordPress setup on /Users/yourHome/theSite, then:
create or copy a backup of the site's DB to /Users/yourHome/theSite/dbdump
go to the site folder cd /Users/yourHome/theSite
Stage everything git add .
commit them git commit -m 'Your commit message
set the repository's remote to where you have to push git remote set-url origin https://example.com/remote/sample.git
and finally push git push -u origin master
please note I'm assuming you already have git repo on the site location. otherwise you need to initiate on in the location before the step 2. lest say as step 1.5 :) git init
so after having the db back up ready, you have to:
cp -rf the/db/backup/* /Users/yourHome/theSite/dbdump/
cd /Users/yourHome/theSite/dbdump
git init
git add .
git commit -m 'Your commit message'
git remote set-url origin https://example.com/remote/sample.git
git push -u origin master

copy-flex-resources not working in flexmojos

I am trying to copy the dependent into war using the copy- flex-resources plugin. However I'm getting the following error :
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:copy-flex-resources (default) on project myproject: Execution default of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:copy-flex-resources failed. NullPointerException
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.2-beta</version>
</plugin>
I'm all over this issue, but could not find a solution.
I am sorry, but NullPointerException does not say much, try to run maven with parameters -e or -X (or both) to see more logging information to find out what is going on. Also you may try a release version of the plugin, not beta just to be sure.
And if you also provide part of the pom.xml with your plugin configuration, someone could notice some mistake :).

bal-util grunt with docpad [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have some trouble with the spawn function in bal-util. I tried this example and the extended version from this docpad skeleton, but I get the same error every time:
error: An error occured:
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
→ [2013-06-01 14:03:27.698] [C:\Users\USERNAME\AppData\Roaming\npm\node_modules\docpad\out\lib\docpad.js] [DocPad.log]
I have the grunt-cli installed.
I use the following versions:
grunt - 0.4.1
bal-util - 2.1.0
How could I fix it, to run grunt properly?
That example uses an older version of Grunt, 0.3.17. In order to use with the latest version of Grunt, 0.4.1, it looks like you'll need to do the following:
Rename grunt.js to Gruntfile.js.
npm install grunt-cli grunt --save-dev
Change grunt.registerTask('default', Object.keys(gruntConfig).join(' ')); to grunt.registerTask('default', Object.keys(gruntConfig));
...and probably more stuff.
Typically you install npm install grunt-cli -g globally to access the grunt command. Since that example has docpad spawning grunt locally, step 2 has you install both locally placing the grunt command at node_modules/.bin/grunt.
I recommend reading up on the DocPad and Grunt docs. Also a shameless plug to one of my own modules for using DocPad with Grunt: https://github.com/shama/grunt-docs and an example Gruntfile.js that uses it: https://github.com/shama/dontkry.com/blob/master/Gruntfile.js

Resources