I want to publish my Docker container to AWS using the Visual Studio interface. I want to specify a custom Docker profile in Visual Studio. I can't seem to connect to AWS that way, though. (Validate Connection always fails.) Is this possible?
I am able to docker build, push to Docker Hub, ssh into my EC2 server (living within ECS), and successfully docker pull, but I'd really like to simplify the process and bypass Docker Hub if possible.
I specified tcp://[my ec2 server]:2376 as the Server URL. I specified the other fields as appropriate. Do I need to specify particular Auth or Run options?
It depends on which AWS region you're using. ECS has a "Repositories" host, sibling to the Clusters and Task Definitions, that's available (for now) only to us-east-1 and us-west-2. When you create a repository, at the top of the page there's an expandable header titled, "Build, Tag, and Push Docker Image". It will give you the instructions for pushing the image.
The Amazon ECS Developer Guide has a "Repositories" page for more information.
Tip: trying to login was not immediately clear from the instructions. Running the aws ecr get-login command will respond with the entire login command that you'll need to execute, but it's an extremely long command. You have to be familiar with copy-and-paste in the terminal. (I was not.)
To copy-and-paste in the terminal,
Click the icon in the top left of the window.
Select Edit > Mark.
Highlight the full width of all the rows.
Select Edit > Copy.
Open notepad, and paste the text.
Remove all line breaks.
Copy everything back to the terminal at the command line (Edit > Paste).
Run the command, and you should now be able to follow the rest of the instructions.
Related
I have the problem that some apps are slow to start up, so I want to be able to run a command and continue to work in another workspace while I wait for the application to start. I want the application to start in the workspace it was run in.
How can I configure i3 to do this?
There must be some technique either using placeholder windows that swallow up the windows you want or by tagging the window to be opened with a workspace number and configuring i3 to recognize those tags and place the window on the appropriate workspace.
I'm surprised there is not a simple solution built in.
I recently downloaded AWS CLI for Windows. I was able to use it just fine the first day however it is now giving me a Permission Denied error on Git Bash whenever I try to do anything with aws.
$ aws
bash: /c/Program Files/Amazon/AWSCLIV2/aws: Permission denied
I've tried uninstalling, reinstalling, restarting my computer, and still nothing. I've even tried messing with the permissions on the folder but it still says I dont even have permission to do that.
Any help?
In my case, this was caused by an AV Agent, specifically Carbon Black, identifying the CLI executable as a threat. Obviously this is a false positive and an issue with Carbon Black.
To resolve the problem I disabled "Protection" temporarily, did what I needed to do, and then uninstalled the CLI until I can get a hold of the responsible party within our organization. I'm also planning to submit this to CB.
Here's how to disable protection:
Find the Carbon Black icon in the bottom right-hand corner of the taskbar.
Right-click the icon and then select Open.
In the CB Agent window, you should see a "Protection" toggle at the top right. Click Off
You should now be able to install the AWS CLI, or use it if you had already installed it.
I am using Jenkins 2.121.2 with Blue Ocean 1.7.1 and, while I can access the pipeline editor via the pencil icon for a pipeline created via the Blue Ocean interface, it seems I'm unable to do the same if the pipeline has been created via the classic UI.
Both pipelines are hosted on a git server (not Github) and the same credentials have been used, one has been created as a multibranch pipeline (from Blue Ocean UI) while the other is a plain pipeline (classic UI).
Trying to access the pipeline editor via the direct URL, as suggested here doesn't work:
editor opens, but no content is displayed if I use the URL like http://host/blue/organizations/jenkins/pipeline-editor/project/
editor opens, but on an empty pipeline (which should be not) if I use the URL like http://host/blue/organizations/jenkins/pipeline-editor/project/master
Any solution to this? Am I missing something?
Since Blue Ocean is still under development, it is one of the limitation it has.
You can check this thread on how to do it right now
Cant open Blue Ocean visual pipeline editor
Basically, you need to click Ctrl+S when you entered the direct link and then copy paste the whole Jenkinsfile code.
I would like to automate a quick start of SQL-MVC.
Can I set a script to run automatically after a git repo is cloned? like this:
auto-run.sh
Also, is it possible to launch a browser window to automatically open to the applications URL at the end of the script?
I have checked all the docs, but I don't find anything on the subject.
From the Git book src:
It’s important to note that client-side hooks are not copied when you clone a repository. If your intent with these scripts is to enforce a policy, you’ll probably want to do that on the server side; see the example in “An Example Git-Enforced Policy”.
So, the automatic running of a script on clone is not going to work. However, you can commit the auto-run.sh file within your repository and ask the user to run that after cloning.
You can open a new browser window on your local machine by adding the correct command within the shell script, (for example, on a mac I usually just use open). However, since Cloud9 workspace doesn't have a window manager, you won't be able to do that from the Cloud9 Terminal. One way to open a browser pane within Cloud9 IDE (not in another tab, I don't think that's possible) is to echo the url, and ask the user to click on it at the end of the script, so something like this:
Please click https://www.google.com to continue
and the Cloud9 terminal is smart enough to open the url in a new browser pane within the IDE when the user clicks on the url.
It should be simple, but i just cant get anything to work.
My Mac mini was connected to the office network (Windows server) and the repository is located on a server harddisk. I have a cloned working copy on the mac etc.
Now the Mac is sitting somewhere else and is connected to the server via VPN.
Because i dont know what exactly it does, let me describe what i was able to pull off.
In finder with cmd+k i entered "smb://192.168.xxx.xxx" and the finder did show the server. I can access the data and the repository.
I use sourcetree to access the git repository. In the bookmarks of sourcetree i can add it as a new repo and it says "This is a Git repository". Now when i hit "clone" it says "cloning from..." all fine... except, it never ends. Watched this for 10 minutes, no network traffic, no file appears on the harddrive. (waited longer... )
When i cancel this, the following line appears "Cloning into /Users/..." and "Completed with errors, see above" but there is no error above.
Now i opened the existing clone with sourcetree and attempted to change the repo location but i just dont know what to enter. It now starts with "/SomeFolder/..." and that folder still exists but now its behind the VPN. So what do i enter ? I tried some variations with IP etc but nothing worked and quite frankly im not getting along with my/a mac.
I really dont care about sourcetree, if its best to use plain XCode, so be it, but i need something that works.
Update 1
Im still having trouble.
The answers with the SSH require a username, which one ?
A former colleague set up this mac for me. I have a VPN Username, a win-domain user and an apple id... which of the 3 is meant in ur SSH lines ?
It may sound trivial but, when i enter the git rep folder, do i have to end the line with a slash or not ?
In the local network the rep folder just started with "/Data/..." so if i put an IP before that, does the IP need a slash before it as well ? I mean, on windows i would know what to do and the only reason why i ask these silly questions is because none of it seems to work on the mac :/
Use SSH,
you can do: git clone ssh://remote_username#ip.of.remote.machine/path/to/git_repository
I would recommend using Xcode, but using key pairs. And when you do that in Xcode, you have to do a little bit of extra configuration: just paste your keys into the ones it put into the repository it made for you then presto (this is how you use GitHub or BitBucket with Xcode).
The source control stuff in Xcode 5 is pretty awesome actually.
http://www.elastichead.me/2013/01/github-and-xcode.html#.UpjarJGWyZY
Two ways:
1) Open via Finder go to server, enter samba server data, leave that window open (it's the established connection to the server), then in XCode you can choose add repository inside the organizer (Cmd+Shift+2). or in XCode 5, it's under Preferences > Accounts, then plus button add repository
2) Another way would be to enable SSH access to the VPN Server, XCode supports SSH, just go into organizer, click "Add Repository", then enter in location field: ssh://remote_username#ip.of.remote.machine/path/to/git_repository
It will ask your for the password.