Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

final docker image steps #6

Open
tylercoverstone opened this issue Oct 9, 2017 · 4 comments
Open

final docker image steps #6

tylercoverstone opened this issue Oct 9, 2017 · 4 comments

Comments

@tylercoverstone
Copy link
Contributor

tylercoverstone commented Oct 9, 2017

mysql -u root -p

CREATE DATABASE SMIRK; exit;

git clone https://github.com/this-is-for-a-team/unf.git

sudo apt-get update; sudo apt-get install libmysqlclient-dev python-dev;
sudo pip install django-tastypie django mysqlclient;
cd unf; python manage.py migrate; python manage.py loaddata fixtures/initial_data.json;
sudo service nginx stop; sudo python manage.py runserver 80
@ahmsayat
Copy link
Member

ahmsayat commented Oct 10, 2017

This will fix the docker ip:

docker ps -a
docker run -d --publish 80:80 --publish 443:443 --publish 22:22 --name server cyberserv

https://stackoverflow.com/questions/34548354/docker-not-port-forwarding-correctly

@ahmsayat
Copy link
Member

sudo docker ps -a
358 sudo docker commit f8f5b6818a3c unf_client
359 sudo docker ps -a
360 sudo docker images
361 locate unf_client

@ahmsayat
Copy link
Member

@ahmsayat
Copy link
Member

cat models.py
188 cd ../unf
189 ls
190 nano
191 nano settings.py
192 ls
193 cat settings.py
194 ls
195 cd ..
196 ls
197 python manage.py makemigrations smirk
198 ls
199 cd smirk
200 ls
201 cd ..
202 ls
203 cd unf
204 ls
205 cat settings.py
206 nano settings.py
207 cd ..
208 ls
209 python manage.py makemigrations smirk
210 python manage.py migrate
211 python manage.py createsuperuser
212 python manage.py runserver
213 ls
214 cd unf
215 ls
216 cd ..
217 ls
218 cd smirk
219 ls
220 cd ..
221 ls
222 cd unf
223 ls
224 cat urls.py
225 ls
226 cd ..
227 ls
228 python manage.py runserver
229 ls
230 cd unf
231 ls
232 lsquit
233 ls
234 mysql -uroot
235 sudo mysql -uroot
236 ls
237 mysql -u root -p
238 cd documents
239 ls
240 cat README.md
241 cd ..
242 ls
243 cat READMe.md
244 cat db.sqlite3
245 python
246 ls
247 strings db.sqlite3
248 clear
249 ls
250 ./manage.py dumpdata --indent 2 > all.json;
251 ls
252 git status
253 git log
254 git add all.json
255 git commit -m "for populating the database."
256 git push
257 git remote -v
258 git checkout -b dataload
259 git push
260 git staus
261 git status
262 git push origin dataload
263 ls
264 cd ..
265 ls
266 ssh cyberuser1@[email protected]
267 nmap
268 sudo apt-get install nmap
269 celar
270 clear
271 ls
272 cd un
273 cd unf/
274 ls
275 clear
276 ls
277 git status
278 git checkout -b in_one_commit
279 git status
280 git add .
281 git commit -m "in one commit"
282 git push origin in_one_commit
283 clear
284 cd ..
285 nmap 139.62.210.130
286 ssh [email protected]
287 ssh [email protected]
288 ssh [email protected]
289 arp -an
290 clearls
291 clear
292 cd ..
293 ls
294 cd student/
295 ;s
296 ls
297 cd un
298 cd unf
299 ls
300 ssh [email protected]
301 ls
302 docker
303 docker images
304 sudo docker images
305 ssh [email protected]
306 ls
307 cd ..
308 ls
309 cd Dcownloads
310 cd Downloads
311 ls
312 cd Docker
313 cd Dockerfile
314 ls
315 cd Docker
316 la
317 ls
318 cd Dockerfile
319 ls
320 cat supervisord-client.conf
321 cat supervisord-server.conf
322 ls
323 cd ..
324 ls
325 cd ..
326 ls
327 cd ..
328 ls
329 cd unf
330 ls
331 python manage.py runserver
332 exit
333 ls
334 cd unf
335 ls
336 python manage.py makemigrations smirk
337 python manage.py migrate
338 python manage.py runserver
339 sudo pip install django-tastypie
340 ls
341 python manage.py makemigrations smirk
342 python manage.py runserver
343 ls
344 python manage.py dumpdata --format=json smirk > /fixtures/initial_data.json
345 python manage.py dumpdata --format=json smirk > fixtures/initial_data.json
346 python manage.py dumpdata auth.group contenttypes.contenttype auth.permission --format=json smirk > fixtures/initial_data.json
347 python manage.py dumpdata auth auth.permission --format=json smirk > fixtures/initial_data.json
348 python manage.py dumpdata auth auth.permission smirk > fixtures/initial_data.json
349 python manage.py dumpdata auth --natural-foreign --natural-primary -e auth.permission smirk > fixtures/initial_data.json
350 python manage.py dumpdata auth --natural-foreign --natural-primary -e auth.permission > fixtures/initial_data.json
351 ssh [email protected]
352 docker ps -a
353 sudo docker ps -a
354 docker commit 91f4df0feefe CyberSrv.UNF.img
355 docker commit 91f4df0feefe cyber_srv.unf.img
356 sudo docker commit 91f4df0feefe cyber_srv.unf.img
357 sudo docker save -o CyberSrv.
358 sudo docker save -o CyberSrv.UNF.img.tar cyber_srv.unf.img
359 git clone https://github.com/this-is-for-a-team/unf.git
360 docker save -o CyberSrv.UNF.img.tar cyber_srv.unf.img
361 cd CyberSrv
362 ls
363 dc CyberSrv.UNF/
364 ls
365 cd CyberSrv.UNF/
366 ls
367 chmod CyberSrv.UNF.img.tar 0777
368 chmod CyberSrv.UNF.img.tar 777
369 chmod 777 CyberSrv.UNF.img.tar
370 sudo chmod 777 CyberSrv.UNF.img.tar
371 history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants